Bi-quad filter base class. More...
#include <math/gzmath.hh>
Inherits Filter< T >.
Public Member Functions | |
BiQuad () GAZEBO_DEPRECATED(8.0) | |
Constructor. More... | |
BiQuad (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... | |
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... | |
Protected Attributes | |
double | a0 |
Input gain control coefficients. More... | |
double | a1 |
double | a2 |
double | b0 |
double | b1 |
double | b2 |
T | x1 |
Gain of the feedback coefficients. More... | |
T | x2 |
T | y0 |
Output. More... | |
T | y1 |
T | y2 |
Bi-quad filter base class.
|
inline |
Constructor.
|
inline |
Constructor.
[in] | _fc | Cutoff frequency. |
[in] | _fs | Sample rate. |
|
inlinevirtualinherited |
Get the output of the filter.
|
inlinevirtual |
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 BiQuad< math::Vector3 >::BiQuad(), and BiQuad< math::Vector3 >::SetFc().
|
inline |
Set the cutoff frequency, sample rate and Q coefficient.
[in] | _fc | Cutoff frequency. |
[in] | _fs | Sample rate. |
[in] | _q | Q coefficient. |
|
inlinevirtual |
Set the current filter's output.
[in] | _val | New filter's output. |
Reimplemented from Filter< T >.
|
protected |
Input gain control coefficients.
Referenced by BiQuad< math::Vector3 >::process(), and BiQuad< math::Vector3 >::SetFc().
|
protected |
Referenced by BiQuad< math::Vector3 >::process(), and BiQuad< math::Vector3 >::SetFc().
|
protected |
Referenced by BiQuad< math::Vector3 >::process(), and BiQuad< math::Vector3 >::SetFc().
|
protected |
Referenced by BiQuad< math::Vector3 >::SetFc().
|
protected |
Referenced by BiQuad< math::Vector3 >::process(), and BiQuad< math::Vector3 >::SetFc().
|
protected |
Referenced by BiQuad< math::Vector3 >::process(), and BiQuad< math::Vector3 >::SetFc().
|
protected |
Gain of the feedback coefficients.
Referenced by BiQuad< math::Vector3 >::process(), and BiQuad< math::Vector3 >::SetValue().
|
protected |
Referenced by BiQuad< math::Vector3 >::process(), and BiQuad< math::Vector3 >::SetValue().
|
protectedinherited |
|
protected |
Referenced by BiQuad< math::Vector3 >::process(), and BiQuad< math::Vector3 >::SetValue().
|
protected |
Referenced by BiQuad< math::Vector3 >::process(), and BiQuad< math::Vector3 >::SetValue().