The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
multibandcompressor::fftfb_plug_t Class Reference
Inheritance diagram for multibandcompressor::fftfb_plug_t:
Inheritance graph

Public Member Functions

 fftfb_plug_t (MHAOvlFilter::fftfb_vars_t &, const mhaconfig_t &cfg, MHA_AC::algo_comm_t &ac, std::string alg)
 
void insert ()
 
- Public Member Functions inherited from MHAOvlFilter::fftfb_t
 fftfb_t (MHAOvlFilter::fftfb_vars_t &par, unsigned int nfft, mha_real_t fs)
 Constructor for a FFT-based overlapping filter bank. More...
 
 ~fftfb_t ()
 
void apply_gains (mha_spec_t *s_out, const mha_spec_t *s_in, const mha_wave_t *gains)
 
void get_fbpower (mha_wave_t *fbpow, const mha_spec_t *s_in)
 
void get_fbpower_db (mha_wave_t *fbpow, const mha_spec_t *s_in)
 
std::vector< mha_real_tget_ltass_gain_db () const
 
unsigned int bin1 (unsigned int band) const
 Return index of first non-zero filter shape window. More...
 
unsigned int bin2 (unsigned int band) const
 Return index of first zero filter shape window above center frequency. More...
 
unsigned int get_fftlen () const
 Return fft length. More...
 
mha_real_t w (unsigned int k, unsigned int b) const
 Return filter shape window at index k in band b. More...
 
- Public Member Functions inherited from MHAOvlFilter::fspacing_t
 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...
 

Private Attributes

MHA_AC::waveform_t cfv
 vector of nominal center frequencies / Hz More...
 
MHA_AC::waveform_t efv
 vector of edge frequencies / Hz More...
 
MHA_AC::waveform_t bwv
 vector of band-weigths (sum of squared fft-bin-weigths)/num_frames More...
 

Additional Inherited Members

- Protected Member Functions inherited from MHAOvlFilter::fspacing_t
void fail_on_nonmonotonic_cf ()
 
void fail_on_unique_fftbins ()
 
- Protected Attributes inherited from MHAOvlFilter::fspacing_t
std::vector< MHAOvlFilter::band_descriptor_tbands
 
mha_real_t(* symmetry_scale )(mha_real_t)
 

Constructor & Destructor Documentation

◆ fftfb_plug_t()

multibandcompressor::fftfb_plug_t::fftfb_plug_t ( MHAOvlFilter::fftfb_vars_t vars,
const mhaconfig_t cfg,
MHA_AC::algo_comm_t ac,
std::string  alg 
)

Member Function Documentation

◆ insert()

void multibandcompressor::fftfb_plug_t::insert ( )

Member Data Documentation

◆ cfv

MHA_AC::waveform_t multibandcompressor::fftfb_plug_t::cfv
private

vector of nominal center frequencies / Hz

◆ efv

MHA_AC::waveform_t multibandcompressor::fftfb_plug_t::efv
private

vector of edge frequencies / Hz

◆ bwv

MHA_AC::waveform_t multibandcompressor::fftfb_plug_t::bwv
private

vector of band-weigths (sum of squared fft-bin-weigths)/num_frames


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