The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
MHAOvlFilter::fspacing_t Class Reference

Class for frequency spacing, used by filterbank shape generator class. More...

Inheritance diagram for MHAOvlFilter::fspacing_t:
Inheritance graph

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_tget_cf_hz () const
 
std::vector< mha_real_tget_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_tbands
 
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_
 

Detailed Description

Class for frequency spacing, used by filterbank shape generator class.

Constructor & Destructor Documentation

◆ fspacing_t()

MHAOvlFilter::fspacing_t::fspacing_t ( const MHAOvlFilter::fftfb_vars_t par,
unsigned int  nfft,
mha_real_t  fs 
)

Member Function Documentation

◆ get_cf_fftbin()

std::vector< unsigned int > MHAOvlFilter::fspacing_t::get_cf_fftbin ( ) const

◆ get_cf_hz()

std::vector< mha_real_t > MHAOvlFilter::fspacing_t::get_cf_hz ( ) const

◆ get_ef_hz()

std::vector< mha_real_t > MHAOvlFilter::fspacing_t::get_ef_hz ( ) const

◆ nbands()

unsigned int MHAOvlFilter::fspacing_t::nbands ( ) const
inline

Return number of bands in filter bank.

◆ fail_on_nonmonotonic_cf()

void MHAOvlFilter::fspacing_t::fail_on_nonmonotonic_cf ( )
protected

◆ fail_on_unique_fftbins()

void MHAOvlFilter::fspacing_t::fail_on_unique_fftbins ( )
protected

◆ ef2bands()

void MHAOvlFilter::fspacing_t::ef2bands ( std::vector< mha_real_t vef)
private

◆ cf2bands()

void MHAOvlFilter::fspacing_t::cf2bands ( std::vector< mha_real_t vcf)
private

◆ equidist2bands()

void MHAOvlFilter::fspacing_t::equidist2bands ( std::vector< mha_real_t vcf)
private

Member Data Documentation

◆ bands

std::vector<MHAOvlFilter::band_descriptor_t> MHAOvlFilter::fspacing_t::bands
protected

◆ symmetry_scale

mha_real_t(* MHAOvlFilter::fspacing_t::symmetry_scale) (mha_real_t)
protected

◆ nfft_

unsigned int MHAOvlFilter::fspacing_t::nfft_
private

◆ fs_

mha_real_t MHAOvlFilter::fspacing_t::fs_
private

The documentation for this class was generated from the following files: