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

Public Member Functions

 cfg_t (unsigned int ichannel, unsigned int numchannels, const mha_complex_t &iscale)
 
 cfg_t (unsigned int, unsigned int)
 
 cfg_t (mhaconfig_t chcfg, mha_real_t newlev, bool replace, mha_real_t len, int seed)
 
void process (mha_wave_t *)
 
void process (mha_spec_t *)
 
 cfg_t (mha_real_t tau_attack, mha_real_t tau_decay, unsigned int nch, mha_real_t start_limit, mha_real_t slope_db, mha_real_t fs)
 

Public Attributes

unsigned int channel
 
mha_complex_t scale
 
mha_real_t start_lin
 
mha_real_t alpha
 
MHAFilter::o1flt_lowpass_t attack
 
MHAFilter::o1flt_maxtrack_t decay
 

Private Attributes

mha_real_t gain_wave_
 
mha_real_t gain_spec_
 
bool replace_
 
bool use_frozen_
 
MHASignal::waveform_t frozen_noise_
 
unsigned int pos
 
std::default_random_engine rng
 
std::uniform_real_distribution< mha_real_trand_dist
 

Constructor & Destructor Documentation

◆ cfg_t() [1/4]

cfg_t::cfg_t ( unsigned int  ichannel,
unsigned int  numchannels,
const mha_complex_t iscale 
)

◆ cfg_t() [2/4]

cfg_t::cfg_t ( unsigned int  ichannel,
unsigned int  numchannels 
)

◆ cfg_t() [3/4]

cfg_t::cfg_t ( mhaconfig_t  chcfg,
mha_real_t  newlev,
bool  replace,
mha_real_t  len,
int  seed 
)

◆ cfg_t() [4/4]

cfg_t::cfg_t ( mha_real_t  tau_attack,
mha_real_t  tau_decay,
unsigned int  nch,
mha_real_t  start_limit,
mha_real_t  slope_db,
mha_real_t  fs 
)

Member Function Documentation

◆ process() [1/2]

void cfg_t::process ( mha_wave_t s)
inline

◆ process() [2/2]

void cfg_t::process ( mha_spec_t s)
inline

Member Data Documentation

◆ channel

unsigned int cfg_t::channel

◆ scale

mha_complex_t cfg_t::scale

◆ gain_wave_

mha_real_t cfg_t::gain_wave_
private

◆ gain_spec_

mha_real_t cfg_t::gain_spec_
private

◆ replace_

bool cfg_t::replace_
private

◆ use_frozen_

bool cfg_t::use_frozen_
private

◆ frozen_noise_

MHASignal::waveform_t cfg_t::frozen_noise_
private

◆ pos

unsigned int cfg_t::pos
private

◆ rng

std::default_random_engine cfg_t::rng
private

◆ rand_dist

std::uniform_real_distribution<mha_real_t> cfg_t::rand_dist
private

◆ start_lin

mha_real_t cfg_t::start_lin

◆ alpha

mha_real_t cfg_t::alpha

◆ attack

◆ decay


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