#include <IIRFilter.h>
Public Member Functions | |
| IIRFilter (vector< Decimal > &inputCoeff, vector< Decimal > &outputCoef) | |
| One input constructor. | |
| IIRFilter (vector< vector< Decimal > > &inputCoeff, vector< Decimal > &outputCoef) | |
| Multi input constructor. | |
| ~IIRFilter () | |
| IIRFilter (const IIRFilter &t) | |
| Copy constructor. | |
| IIRFilter & | operator= (const IIRFilter &t) |
| Assigment operator =. | |
| void | step (const Decimal &in, Decimal &out) |
| Executes a step of the recursive filter. | |
| void | step (const vector< Decimal > &in, Decimal &out) |
| Executes a step of the recursive filter, in case of multiple inputs. | |
One input constructor.
| [in] | inputCoeff | Coefficients of the denominator of the Zeta transform. Ex. If you want b0 + b1*z + b2*z^2 +z^3 you have to set: inputCoeff[0] = b0, inputCoeff[1] = b1, inputCoeff[2] = b2 Note that the last coefficient is not involved since it is always considered as 1. |
| [in] | outputCoeff | Coefficients of the numerator of the Zeta transform. Ex. If you want a0 + a1*z + a2*z^2 + a3*z^3 you have to set: outputCoeff[0] = a0, outputCoeff[1] = a1, outputCoeff[2] = a2, outputCoeff[3] = a3 Note that if outputCoeff.size() > inputCoeff.size() + 1 then outputCoeff is cut at the entry outputCoeff[inputCoeff.size()] (included). This is needed to have a causal filter. |
Multi input constructor.
| [in] | inputCoeff | Vector of Coefficients of the denominators of the Zeta transform for each different input. Ex. If you want b0 + b1*z + b2*z^2 +z^3 you have to set: inputCoeff[0] = b0, inputCoeff[1] = b1, inputCoeff[2] = b2 Note that the last coefficient is not involved since it is always considered as 1. |
| [in] | outputCoeff | Coefficients of the numerator of the Zeta transform. Ex. If you want a0 + a1*z + a2*z^2 + a3*z^3 you have to set: outputCoeff[0] = a0, outputCoeff[1] = a1, outputCoeff[2] = a2, outputCoeff[3] = a3 Note that if outputCoeff.size() > inputCoeff.size() + 1 then outputCoeff is cut at the entry outputCoeff[inputCoeff.size()] (included). This is needed to have a causal filter. |
| IIRFilter::~IIRFilter | ( | ) |
| IIRFilter::IIRFilter | ( | const IIRFilter & | t | ) |
Copy constructor.
Executes a step of the recursive filter.
| [in] | in | Input value. |
| [out] | out | Output value. |
Executes a step of the recursive filter, in case of multiple inputs.
| [in] | in | Input values. |
| [out] | out | Output value. |
1.5.6