| VF_biquad | VD_biquad | VE_biquad |
|
| Function | Biquadratic filtering |
|
| Syntax C/C++ | #include <VFstd.h>
void VF_biquad( fVector Y, fVector X, ui size, fVector Param ); |
| C++ VecObj | #include <OptiVec.h>
void vector<T>::biquad( const vector<T>& X, const vector<T>& Param, ); |
| Pascal/Delphi | uses VFstd;
procedure VF_biquad( Y,X:fVector; size:UIntSize; Param:fVector ); |
|
| Description | A bi-quadratic filter, used mostly in audio data processing, calculates output from input values according to the formula:
Y[i] = a0*X[i] + a1*X[i-1] + a2*X[i-2] - b1*Y[i-1] - b2*Y[i-2]
As this is a recursive filter, the function needs not only the filter coefficients themselves, but also the two input and two output values preceding the data passed in the input vector. All these values are passed to VF_biquad in the vector Param, containing nine entries:
Param[0]=a0
Param[1]=a1
Param[2]=a2
Param[3]=b1
Param[4]=b2
Param[5]=X[-1]
Param[6]=X[-2]
Param[7]=Y[-1]
Param[8]=Y[-2]
|
|
|
|
|