The Open Master Hearing Aid (openMHA)
openMHA
Open community platform for hearing aid algorithm research
|
Complex bandpass filter. More...
Public Member Functions | |
complex_bandpass_t (std::vector< mha_complex_t > A, std::vector< mha_complex_t > B) | |
Constructor with filter coefficients (one 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) |
void | set_weights (std::vector< mha_complex_t > new_B) |
Allow to modify the input weights at a later stage. More... | |
std::vector< mha_complex_t > | get_weights () const |
void | filter (const mha_wave_t &X, mha_spec_t &Y) |
Filter method for real value input. More... | |
void | filter (const mha_wave_t &X, mha_wave_t &Yre, mha_wave_t &Yim) |
Filter method for real value input. More... | |
void | filter (const mha_spec_t &X, mha_spec_t &Y) |
Filter method for complex value input. More... | |
void | filter (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... | |
std::string | inspect () const |
Static Public Member Functions | |
static std::vector< mha_complex_t > | creator_A (std::vector< mha_real_t > cf, std::vector< mha_real_t > bw, mha_real_t srate, unsigned int order) |
static std::vector< mha_complex_t > | creator_B (std::vector< mha_complex_t > A, unsigned int order) |
Private Attributes | |
std::vector< mha_complex_t > | A_ |
std::vector< mha_complex_t > | B_ |
std::vector< mha_complex_t > | Yn |
Complex bandpass filter.
MHAFilter::complex_bandpass_t::complex_bandpass_t | ( | std::vector< mha_complex_t > | A, |
std::vector< mha_complex_t > | B | ||
) |
Constructor with filter coefficients (one per channel)
A | complex filter coefficients, one per band |
B | complex weights |
|
static |
|
static |
void MHAFilter::complex_bandpass_t::set_state | ( | mha_real_t | val | ) |
void MHAFilter::complex_bandpass_t::set_state | ( | std::vector< mha_real_t > | val | ) |
void MHAFilter::complex_bandpass_t::set_state | ( | mha_complex_t | val | ) |
void MHAFilter::complex_bandpass_t::set_weights | ( | std::vector< mha_complex_t > | new_B | ) |
Allow to modify the input weights at a later stage.
|
inline |
|
inline |
Filter method for real value input.
|
inline |
Filter method for real value input.
|
inline |
Filter method for complex value input.
|
inline |
Filter method for complex value input.
|
inline |
|
private |
|
private |
|
private |