Bi-quad filter base class.
More...
#include <ignition/math/Filter.hh>
|
| BiQuad ()=default |
| Constructor. More...
|
|
| BiQuad (double _fc, double _fs) |
| Constructor. More...
|
|
void | Fc (double _fc, double _fs) |
| Set the cutoff frequency and sample rate. More...
|
|
void | Fc (double _fc, double _fs, double _q) |
| Set the cutoff frequency, sample rate and Q coefficient. More...
|
|
virtual const T & | Process (const T &_x) |
| Update the filter's output. More...
|
|
virtual void | Set (const T &_val) |
| Set the current filter's output. More...
|
|
virtual | ~Filter () |
| Destructor. More...
|
|
virtual const T & | Value () const |
| Get the output of the filter. More...
|
|
|
double | a0 = 0 |
| Input gain control coefficients. More...
|
|
double | a1 = 0 |
|
double | a2 = 0 |
|
double | b0 = 0 |
|
double | b1 = 0 |
|
double | b2 = 0 |
|
T | x1 {} |
| Gain of the feedback coefficients. More...
|
|
T | x2 {} |
|
T | y1 {} |
|
T | y2 {} |
|
T | y0 {} |
| Output. More...
|
|
template<class T>
class ignition::math::BiQuad< T >
Bi-quad filter base class.
- See Also
- http://www.earlevel.com/main/2003/03/02/the-bilinear-z-transform/
Constructor.
- Parameters
-
[in] | _fc | Cutoff frequency. |
[in] | _fs | Sample rate. |
Set the cutoff frequency, sample rate and Q coefficient.
- Parameters
-
[in] | _fc | Cutoff frequency. |
[in] | _fs | Sample rate. |
[in] | _q | Q coefficient. |
Update the filter's output.
- Parameters
-
- Returns
- The filter's current output.
The documentation for this class was generated from the following file: