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

Public Member Functions

 cohflt_t (vars_t &v, const mhaconfig_t &icf, MHA_AC::algo_comm_t &iac, const std::string &name)
 
mha_spec_tprocess (mha_spec_t *)
 
void insert ()
 

Private Attributes

unsigned int nbands
 
bool avg_ipd
 
mha_complex_t cg
 
float g
 
float c_scale
 
float c_min
 
MHASignal::waveform_t alpha
 
float limit
 
MHAFilter::o1flt_lowpass_t lp1r
 
MHAFilter::o1flt_lowpass_t lp1i
 
MHA_AC::spectrum_t coh_c
 
MHA_AC::waveform_t coh_rlp
 
MHASignal::waveform_t gain
 
MHASignal::delay_wave_t gain_delay
 
MHASignal::spectrum_t s_out
 
bool bInvert
 
MHAFilter::o1flt_lowpass_t lp1ltg
 
bool b_ltg
 
std::vector< float > staticgain
 
- Private Attributes inherited from MHAOvlFilter::fspacing_t
std::vector< MHAOvlFilter::band_descriptor_tbands
 
mha_real_t(* symmetry_scale )(mha_real_t)
 
- Private Attributes inherited from mhaconfig_t
unsigned int channels
 Number of audio channels. More...
 
unsigned int domain
 Signal domain (MHA_WAVEFORM or MHA_SPECTRUM) More...
 
unsigned int fragsize
 Fragment size of waveform data. More...
 
unsigned int wndlen
 Window length of spectral data. More...
 
unsigned int fftlen
 FFT length of spectral data. More...
 
mha_real_t srate
 Sampling rate in Hz. More...
 

Additional Inherited Members

- Private 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...
 
- Private 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...
 
void fail_on_nonmonotonic_cf ()
 
void fail_on_unique_fftbins ()
 

Constructor & Destructor Documentation

◆ cohflt_t()

coherence::cohflt_t::cohflt_t ( vars_t v,
const mhaconfig_t icf,
MHA_AC::algo_comm_t iac,
const std::string &  name 
)

Member Function Documentation

◆ process()

mha_spec_t * coherence::cohflt_t::process ( mha_spec_t s)

◆ insert()

void coherence::cohflt_t::insert ( )

Member Data Documentation

◆ nbands

unsigned int coherence::cohflt_t::nbands
private

◆ avg_ipd

bool coherence::cohflt_t::avg_ipd
private

◆ cg

mha_complex_t coherence::cohflt_t::cg
private

◆ g

float coherence::cohflt_t::g
private

◆ c_scale

float coherence::cohflt_t::c_scale
private

◆ c_min

float coherence::cohflt_t::c_min
private

◆ alpha

MHASignal::waveform_t coherence::cohflt_t::alpha
private

◆ limit

float coherence::cohflt_t::limit
private

◆ lp1r

MHAFilter::o1flt_lowpass_t coherence::cohflt_t::lp1r
private

◆ lp1i

MHAFilter::o1flt_lowpass_t coherence::cohflt_t::lp1i
private

◆ coh_c

MHA_AC::spectrum_t coherence::cohflt_t::coh_c
private

◆ coh_rlp

MHA_AC::waveform_t coherence::cohflt_t::coh_rlp
private

◆ gain

MHASignal::waveform_t coherence::cohflt_t::gain
private

◆ gain_delay

MHASignal::delay_wave_t coherence::cohflt_t::gain_delay
private

◆ s_out

MHASignal::spectrum_t coherence::cohflt_t::s_out
private

◆ bInvert

bool coherence::cohflt_t::bInvert
private

◆ lp1ltg

MHAFilter::o1flt_lowpass_t coherence::cohflt_t::lp1ltg
private

◆ b_ltg

bool coherence::cohflt_t::b_ltg
private

◆ staticgain

std::vector<float> coherence::cohflt_t::staticgain
private

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