The Open Master Hearing Aid (openMHA)
openMHA
Open community platform for hearing aid algorithm research
|
Class for frequency spacing, used by filterbank shape generator class. More...
Public Member Functions | |
fspacing_t (const MHAOvlFilter::fftfb_vars_t &par, unsigned int nfft, mha_real_t fs) | |
std::vector< unsigned int > | get_cf_fftbin () const |
std::vector< mha_real_t > | get_cf_hz () const |
std::vector< mha_real_t > | get_ef_hz () const |
unsigned int | nbands () const |
Return number of bands in filter bank. More... | |
Protected Member Functions | |
void | fail_on_nonmonotonic_cf () |
void | fail_on_unique_fftbins () |
Protected Attributes | |
std::vector< MHAOvlFilter::band_descriptor_t > | bands |
mha_real_t(* | symmetry_scale )(mha_real_t) |
Private Member Functions | |
void | ef2bands (std::vector< mha_real_t > vef) |
void | cf2bands (std::vector< mha_real_t > vcf) |
void | equidist2bands (std::vector< mha_real_t > vcf) |
Private Attributes | |
unsigned int | nfft_ |
mha_real_t | fs_ |
Class for frequency spacing, used by filterbank shape generator class.
MHAOvlFilter::fspacing_t::fspacing_t | ( | const MHAOvlFilter::fftfb_vars_t & | par, |
unsigned int | nfft, | ||
mha_real_t | fs | ||
) |
std::vector< unsigned int > MHAOvlFilter::fspacing_t::get_cf_fftbin | ( | ) | const |
std::vector< mha_real_t > MHAOvlFilter::fspacing_t::get_cf_hz | ( | ) | const |
std::vector< mha_real_t > MHAOvlFilter::fspacing_t::get_ef_hz | ( | ) | const |
|
inline |
Return number of bands in filter bank.
|
protected |
|
protected |
|
private |
|
private |
|
private |
|
protected |
|
protected |
|
private |
|
private |