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/
Constructor.
- Parameters
-
[in] | _fc | Cutoff frequency. |
[in] | _fs | Sample rate. |
virtual const T& GetValue |
( |
| ) |
|
|
inlinevirtualinherited |
Get the output of the filter.
- Returns
- Filter's output.
const T& Process |
( |
const T & |
_x | ) |
|
|
inline |
Update the filter's output.
[in] _x Input value.
- Returns
- The filter's current output.
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 >.
virtual void SetValue |
( |
const T & |
_val | ) |
|
|
inlinevirtualinherited |
The documentation for this class was generated from the following file: