BiQuad vector3 filter. More...
#include <math/gzmath.hh>
Inherits BiQuad< math::Vector3 >.
Public Member Functions | |
BiQuadVector3 () | |
Constructor. More... | |
BiQuadVector3 (double _fc, double _fs) | |
Constructor. More... | |
virtual const math::Vector3 & | GetValue () |
Get the output of the filter. More... | |
virtual const math::Vector3 & | process (const math::Vector3 &_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 math::Vector3 &_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 |
math::Vector3 | x1 |
Gain of the feedback coefficients. More... | |
math::Vector3 | x2 |
math::Vector3 | y0 |
Output. More... | |
math::Vector3 | y1 |
math::Vector3 | y2 |
BiQuad vector3 filter.
|
inline |
Constructor.
References Filter< T >::SetValue().
|
inline |
Constructor.
[in] | _fc | Cutoff frequency. |
[in] | _fs | Sample rate. |
References Filter< T >::SetValue().
|
inlinevirtualinherited |
|
inlinevirtualinherited |
Update the filter's output.
[in] | _x | Input value. |
References Filter< T >::y0.
|
inlinevirtualinherited |
Set the cutoff frequency and sample rate.
[in] | _fc | Cutoff frequency. |
[in] | _fs | Sample rate. |
Implements Filter< math::Vector3 >.
References Filter< T >::SetFc().
|
inlineinherited |
Set the cutoff frequency, sample rate and Q coefficient.
[in] | _fc | Cutoff frequency. |
[in] | _fs | Sample rate. |
[in] | _q | Q coefficient. |
|
inlinevirtualinherited |
Set the current filter's output.
[in] | _val | New filter's output. |
Reimplemented from Filter< math::Vector3 >.
References Filter< T >::y0.
|
protectedinherited |
Input gain control coefficients.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Gain of the feedback coefficients.
|
protectedinherited |
|
protectedinherited |
Output.
|
protectedinherited |
|
protectedinherited |