#include <iirfilter.h>
mcl::IirFilter::IirFilter |
( |
| ) |
|
Constructs a default filter, i.e. identical filter
mcl::IirFilter::IirFilter |
( |
std::vector< Real > |
B, |
|
|
std::vector< Real > |
A |
|
) |
| |
Constructs an IIR filter (II-type direct implementation). B and A are numerator and denominator of the filter, respectively.
mcl::IirFilter::IirFilter |
( |
const IirFilter & |
copy | ) |
|
mcl::IirFilter::~IirFilter |
( |
| ) |
|
|
virtual |
std::vector< Real > mcl::IirFilter::A |
( |
| ) |
const |
Returns the backward coefficients
std::vector< Real > mcl::IirFilter::B |
( |
| ) |
const |
Returns the forward coefficients
Real mcl::IirFilter::Filter |
( |
const Real |
input | ) |
|
|
virtualnoexcept |
Returns the output of the filter for an input equal to input
. For example, if B=1, A=1, output will be equal to input. As a second example, if B=[0,1], A=[1, 0], you will have (1) Filter(0.5)==0 and then (2) Filter(0.0)==0.5
Implements mcl::DigitalFilter.
void mcl::IirFilter::Filter |
( |
const Real * |
input_data, |
|
|
const Int |
num_samples, |
|
|
Real * |
output_data |
|
) |
| |
|
virtualnoexcept |
Real mcl::IirFilter::GetDenominatorCoefficient |
( |
const Int |
coeff_id | ) |
const |
|
noexcept |
Real mcl::IirFilter::GetNumeratorCoefficient |
( |
const Int |
coeff_id | ) |
const |
|
noexcept |
Int mcl::IirFilter::order |
( |
| ) |
const |
|
noexcept |
Returns the order of the filter.
void mcl::IirFilter::Reset |
( |
| ) |
|
|
virtual |
void mcl::IirFilter::SetCoefficients |
( |
const std::vector< Real > & |
B, |
|
|
const std::vector< Real > & |
A |
|
) |
| |
|
noexcept |
Updates the filter coefficients. May cause articafts if the coefficients are updated too rapidly.
void mcl::IirFilter::SetCoefficients |
( |
const IirFilter & |
filter | ) |
|
|
noexcept |
Sets the coefficients as identical to those of another filter.
void mcl::IirFilter::SetDenominatorCoefficient |
( |
const Int |
coeff_id, |
|
|
const Real |
value |
|
) |
| |
|
inlinenoexcept |
void mcl::IirFilter::SetNumeratorCoefficient |
( |
const Int |
coeff_id, |
|
|
const Real |
value |
|
) |
| |
|
noexcept |
bool mcl::IirFilter::Test |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following files: