The Open Master Hearing Aid (openMHA)
openMHA
Open community platform for hearing aid algorithm research
|
First order recursive filter. More...
Public Member Functions | |
iir_ord1_real_t (std::vector< mha_real_t > A, std::vector< mha_real_t > B) | |
Constructor with filter coefficients (one per channel) More... | |
iir_ord1_real_t (std::vector< mha_real_t > tau, mha_real_t srate) | |
Constructor for low pass filter (one time constant per channel) More... | |
void | set_state (mha_real_t val) |
void | set_state (std::vector< mha_real_t > val) |
void | set_state (mha_complex_t val) |
mha_real_t | operator() (unsigned int ch, mha_real_t x) |
Filter method for real value input, one element. More... | |
mha_complex_t | operator() (unsigned int ch, mha_complex_t x) |
Filter method for complex input, one element. More... | |
void | operator() (const mha_wave_t &X, mha_wave_t &Y) |
Filter method for real value input. More... | |
void | operator() (const mha_spec_t &X, mha_spec_t &Y) |
Filter method for complex value input. More... | |
void | operator() (const mha_wave_t &Xre, const mha_wave_t &Xim, mha_wave_t &Yre, mha_wave_t &Yim) |
Filter method for complex value input. More... | |
Private Attributes | |
std::vector< mha_real_t > | A_ |
std::vector< mha_real_t > | B_ |
std::vector< mha_complex_t > | Yn |
First order recursive filter.
MHAFilter::iir_ord1_real_t::iir_ord1_real_t | ( | std::vector< mha_real_t > | A, |
std::vector< mha_real_t > | B | ||
) |
Constructor with filter coefficients (one per channel)
MHAFilter::iir_ord1_real_t::iir_ord1_real_t | ( | std::vector< mha_real_t > | tau, |
mha_real_t | srate | ||
) |
Constructor for low pass filter (one time constant per channel)
void MHAFilter::iir_ord1_real_t::set_state | ( | mha_real_t | val | ) |
void MHAFilter::iir_ord1_real_t::set_state | ( | std::vector< mha_real_t > | val | ) |
void MHAFilter::iir_ord1_real_t::set_state | ( | mha_complex_t | val | ) |
|
inline |
Filter method for real value input, one element.
|
inline |
Filter method for complex input, one element.
|
inline |
Filter method for real value input.
|
inline |
Filter method for complex value input.
|
inline |
Filter method for complex value input.
|
private |
|
private |
|
private |