The Open Master Hearing Aid (openMHA)
openMHA
Open community platform for hearing aid algorithm research
|
Class for gammatone filter. More...
Public Member Functions | |
gamma_flt_t (std::vector< mha_real_t > cf, std::vector< mha_real_t > bw, mha_real_t srate, unsigned int order) | |
Constructor. More... | |
~gamma_flt_t () | |
void | operator() (mha_wave_t &X, mha_spec_t &Y) |
Filter method. More... | |
void | operator() (mha_wave_t &X, mha_wave_t &Yre, mha_wave_t &Yim) |
Filter method. More... | |
void | operator() (mha_wave_t &Yre, mha_wave_t &Yim, unsigned int stage) |
Filter method for specific stage. More... | |
void | phase_correction (unsigned int desired_delay, unsigned int inchannels) |
void | set_weights (std::vector< mha_complex_t > new_B) |
void | set_weights (unsigned int stage, std::vector< mha_complex_t > new_B) |
std::vector< mha_complex_t > | get_weights () const |
std::vector< mha_complex_t > | get_weights (unsigned int stage) const |
std::vector< mha_real_t > | get_resynthesis_gain () const |
void | reset_state () |
const std::vector< mha_complex_t > & | get_A () |
std::string | inspect () const |
Private Attributes | |
std::vector< mha_complex_t > | A |
std::vector< complex_bandpass_t > | GF |
MHASignal::delay_t * | delay |
std::vector< int > | envelope_delay |
std::vector< mha_real_t > | resynthesis_gain |
std::vector< mha_real_t > | cf_ |
std::vector< mha_real_t > | bw_ |
mha_real_t | srate_ |
Class for gammatone filter.
MHAFilter::gamma_flt_t::gamma_flt_t | ( | std::vector< mha_real_t > | cf, |
std::vector< mha_real_t > | bw, | ||
mha_real_t | srate, | ||
unsigned int | order | ||
) |
Constructor.
cf | Center frequency in Hz. |
bw | Bandwidth in Hz (same number of entries as in cf). |
srate | Sampling frequency in Hz. |
order | Filter order. |
MHAFilter::gamma_flt_t::~gamma_flt_t | ( | ) |
|
inline |
Filter method.
|
inline |
Filter method.
|
inline |
Filter method for specific stage.
void MHAFilter::gamma_flt_t::phase_correction | ( | unsigned int | desired_delay, |
unsigned int | inchannels | ||
) |
void MHAFilter::gamma_flt_t::set_weights | ( | std::vector< mha_complex_t > | new_B | ) |
void MHAFilter::gamma_flt_t::set_weights | ( | unsigned int | stage, |
std::vector< mha_complex_t > | new_B | ||
) |
|
inline |
|
inline |
|
inline |
void MHAFilter::gamma_flt_t::reset_state | ( | ) |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |