Bi-quad filter base class.
More...
#include <ignition/math/Filter.hh>
|
| BiQuad ()=default |
| Constructor.
|
| BiQuad (double _fc, double _fs) |
| Constructor.
|
void | Fc (double _fc, double _fs) |
| Set the cutoff frequency and sample rate.
|
void | Fc (double _fc, double _fs, double _q) |
| Set the cutoff frequency, sample rate and Q coefficient.
|
virtual const T & | Process (const T &_x) |
| Update the filter's output.
|
virtual void | Set (const T &_val) |
| Set the current filter's output.
|
virtual | ~Filter () |
| Destructor.
|
virtual const T & | Value () const |
| Get the output of the filter.
|
|
double | a0 = 0 |
| Input gain control coefficients.
|
double | a1 = 0 |
double | a2 = 0 |
double | b0 = 0 |
double | b1 = 0 |
double | b2 = 0 |
T | x1 {} |
| Gain of the feedback coefficients.
|
T | x2 {} |
T | y1 {} |
T | y2 {} |
T | y0 {} |
| Output.
|
template<class T>
class ignition::math::IGNITION_MATH_VERSION_NAMESPACE::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]
Constructor.
- Parameters
-
[in] | _fc | Cutoff frequency. |
[in] | _fs | Sample rate. |
References Fc().
◆ Fc() [1/2]
◆ Fc() [2/2]
Set the cutoff frequency, sample rate and Q coefficient.
- Parameters
-
[in] | _fc | Cutoff frequency. |
[in] | _fs | Sample rate. |
[in] | _q | Q coefficient. |
References a0, a1, a2, b0, b1, b2, and IGN_PI.
◆ Process()
◆ Set()
◆ a0
Input gain control coefficients.
Referenced by Fc(), and Process().
◆ a1
◆ a2
◆ b0
◆ b1
◆ b2
◆ x1
Gain of the feedback coefficients.
Referenced by Process(), and Set().
◆ x2
◆ y1
◆ y2
The documentation for this class was generated from the following file: