A one-pole DSP filter.
More...
#include <math/gzmath.hh>
Inherits Filter< T >.
template<class T>
class gazebo::math::OnePole< T >
A one-pole DSP filter.
- See also
- http://www.earlevel.com/main/2012/12/15/a-one-pole-filter/
§ OnePole() [1/2]
§ OnePole() [2/2]
Constructor.
- Parameters
-
[in] | _fc | Cutoff frequency. |
[in] | _fs | Sample rate. |
§ GetValue()
virtual const T& GetValue |
( |
| ) |
|
|
inlinevirtualinherited |
Get the output of the filter.
- Returns
- Filter's output.
§ Process()
const T& Process |
( |
const T & |
_x | ) |
|
|
inline |
Update the filter's output.
[in] _x Input value.
- Returns
- The filter's current output.
§ SetFc()
virtual void SetFc |
( |
double |
_fc, |
|
|
double |
_fs |
|
) |
| |
|
inlinevirtual |
Set the cutoff frequency and sample rate.
- Parameters
-
[in] | _fc | Cutoff frequency. |
[in] | _fs | Sample rate. |
Implements Filter< T >.
§ SetValue()
virtual void SetValue |
( |
const T & |
_val | ) |
|
|
inlinevirtualinherited |
§ a0
§ b1
§ y0
The documentation for this class was generated from the following file: