A one-pole DSP filter. More...
#include <math/gzmath.hh>
Inherits Filter< T >.
Public Member Functions | |
| OnePole () GAZEBO_DEPRECATED(8.0) | |
| Constructor. More... | |
| OnePole (double _fc, double _fs) GAZEBO_DEPRECATED(8.0) | |
| Constructor. More... | |
| virtual const T & | GetValue () GAZEBO_DEPRECATED(8.0) |
| Get the output of the filter. More... | |
| const T & | Process (const T &_x) |
| Update the filter's output. More... | |
| virtual void | SetFc (double _fc, double _fs) |
| Set the cutoff frequency and sample rate. More... | |
| virtual void | SetValue (const T &_val) GAZEBO_DEPRECATED(8.0) |
| Set the output of the filter. More... | |
Protected Attributes | |
| double | a0 |
| Input gain control. More... | |
| double | b1 |
| Gain of the feedback. More... | |
| T | y0 |
| Output. More... | |
A one-pole DSP filter.
|
inline |
Constructor.
|
inline |
Constructor.
| [in] | _fc | Cutoff frequency. |
| [in] | _fs | Sample rate. |
|
inlinevirtualinherited |
Get the output of the filter.
|
inline |
Update the filter's output.
[in] _x Input value.
|
inlinevirtual |
Set the cutoff frequency and sample rate.
| [in] | _fc | Cutoff frequency. |
| [in] | _fs | Sample rate. |
Implements Filter< T >.
Referenced by OnePole< math::Vector3 >::OnePole().
|
inlinevirtualinherited |
Set the output of the filter.
| [in] | _val | New value. |
Reimplemented in BiQuad< T >, and BiQuad< math::Vector3 >.
|
protected |
Input gain control.
Referenced by OnePole< math::Vector3 >::Process(), and OnePole< math::Vector3 >::SetFc().
|
protected |
Gain of the feedback.
Referenced by OnePole< math::Vector3 >::Process(), and OnePole< math::Vector3 >::SetFc().
|
protectedinherited |