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) override |
| 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) override |
| 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/
◆ BiQuad() [1/2]
◆ BiQuad() [2/2]
BiQuad |
( |
double |
_fc, |
|
|
double |
_fs |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
[in] | _fc | Cutoff frequency. |
[in] | _fs | Sample rate. |
◆ Fc() [1/2]
void Fc |
( |
double |
_fc, |
|
|
double |
_fs |
|
) |
| |
|
inlineoverridevirtual |
◆ Fc() [2/2]
void Fc |
( |
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. |
◆ Process()
virtual const T& Process |
( |
const T & |
_x | ) |
|
|
inlinevirtual |
Update the filter's output.
- Parameters
-
- Returns
- The filter's current output.
◆ Set()
virtual void Set |
( |
const T & |
_val | ) |
|
|
inlineoverridevirtual |
Set the current filter's output.
- Parameters
-
[in] | _val | New filter's output. |
Reimplemented from Filter< T >.
◆ a0
◆ a1
◆ a2
◆ b0
◆ b1
◆ b2
◆ x1
◆ x2
◆ y1
◆ y2
The documentation for this class was generated from the following file: