Bi-quad filter base class.
More...
#include <math/gzmath.hh>
Inherits Filter< T >.
|
| BiQuad () |
| Constructor. More...
|
|
| BiQuad (double _fc, double _fs) |
| Constructor. More...
|
|
virtual const T & | GetValue () |
| Get the output of the filter. More...
|
|
virtual const T & | process (const T &_x) |
| Update the filter's output. More...
|
|
void | SetFc (double _fc, double _fs) |
| Set the cutoff frequency and sample rate. More...
|
|
void | SetFc (double _fc, double _fs, double _q) |
| Set the cutoff frequency, sample rate and Q coefficient. More...
|
|
virtual void | SetValue (const T &_val) |
| Set the current filter's output. More...
|
|
template<class T>
class gazebo::math::BiQuad< T >
Bi-quad filter base class.
- See also
- http://www.earlevel.com/main/2003/03/02/the-bilinear-z-transform/
§ BiQuad() [1/2]
§ BiQuad() [2/2]
BiQuad |
( |
double |
_fc, |
|
|
double |
_fs |
|
) |
| |
|
inline |
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()
virtual const T& process |
( |
const T & |
_x | ) |
|
|
inlinevirtual |
Update the filter's output.
- Parameters
-
- Returns
- The filter's current output.
§ SetFc() [1/2]
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 >.
§ SetFc() [2/2]
void SetFc |
( |
double |
_fc, |
|
|
double |
_fs, |
|
|
double |
_q |
|
) |
| |
|
inline |
Set the cutoff frequency, sample rate and Q coefficient.
- Parameters
-
[in] | _fc | Cutoff frequency. |
[in] | _fs | Sample rate. |
[in] | _q | Q coefficient. |
§ SetValue()
virtual void SetValue |
( |
const T & |
_val | ) |
|
|
inlinevirtual |
Set the current filter's output.
- Parameters
-
[in] | _val | New filter's output. |
Reimplemented from Filter< T >.
§ a0
Input gain control coefficients.
§ a1
§ a2
§ b0
§ b1
§ b2
§ x1
Gain of the feedback coefficients.
§ x2
§ y0
§ y1
§ y2
The documentation for this class was generated from the following file: