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

Public Types

typedef ADM::ADM< mha_real_tadm_t
 

Public Member Functions

 adm_rtconfig_t (unsigned nchannels_in, unsigned nchannels_out, int adaptation_ratio_, const std::vector< int > &front_channels, const std::vector< int > &rear_channels, const mha_real_t fs, const std::vector< mha_real_t > &distances, const int lp_order, const int decomb_order, const std::vector< mha_real_t > &tau_beta, const std::vector< mha_real_t > &mu_beta)
 Construct new ADMs. More...
 
virtual ~adm_rtconfig_t ()
 
size_t num_adms () const
 
adm_tadm (unsigned index)
 Returns adm object number index. More...
 
int front_channel (unsigned index) const
 Returns index of front channel for adm number index. More...
 
int rear_channel (unsigned index) const
 Returns index of rear channel for adm number index. More...
 
int get_adaptation_ratio () const
 

Private Member Functions

void check_index (unsigned index) const
 Index checking for all internal arrays. More...
 

Private Attributes

std::vector< int > front_channels
 Indices of channels containing the signals from the front microphones. More...
 
std::vector< int > rear_channels
 Indices of channels containing the signals from the rear microphones. More...
 
int adaptation_ratio
 Prescale. More...
 
MHASignal::waveform_tlp_coeffs
 Lowpass filter coefficients. More...
 
std::vector< MHASignal::waveform_t * > decomb_coeffs
 Decomb-Filter coefficients. More...
 
std::vector< adm_t * > adms
 ADMs. More...
 

Member Typedef Documentation

◆ adm_t

Constructor & Destructor Documentation

◆ adm_rtconfig_t()

adm_rtconfig_t::adm_rtconfig_t ( unsigned  nchannels_in,
unsigned  nchannels_out,
int  adaptation_ratio_,
const std::vector< int > &  front_channels,
const std::vector< int > &  rear_channels,
const mha_real_t  fs,
const std::vector< mha_real_t > &  distances,
const int  lp_order,
const int  decomb_order,
const std::vector< mha_real_t > &  tau_beta,
const std::vector< mha_real_t > &  mu_beta 
)

Construct new ADMs.

Used when configuration changes.

Parameters
nchannels_inNumber of input channels
nchannels_outNumber of output channels
adaptation_ratio_Update beta every adaptation_ratio frames
front_channelsParser's front_channels setting
rear_channelsParser's front_channels setting
fsSampling rate / Hz
distancesDistances between microphones / m
lp_orderFilter order of FIR lowpass filter for adaptation
decomb_orderFilter order of FIR compensation filter (compensates for comb filter characteristic)
tau_betaTime constants of the lowpass filter used for averaging the power of the output signal used for adaptation
mu_betaAdaptation step sizes

◆ ~adm_rtconfig_t()

adm_rtconfig_t::~adm_rtconfig_t ( )
virtual

Member Function Documentation

◆ check_index()

void adm_rtconfig_t::check_index ( unsigned  index) const
inlineprivate

Index checking for all internal arrays.

Exceptions
MHA_Errorif index out of range.

◆ num_adms()

size_t adm_rtconfig_t::num_adms ( ) const
inline

◆ adm()

adm_t& adm_rtconfig_t::adm ( unsigned  index)
inline

Returns adm object number index.

◆ front_channel()

int adm_rtconfig_t::front_channel ( unsigned  index) const
inline

Returns index of front channel for adm number index.

◆ rear_channel()

int adm_rtconfig_t::rear_channel ( unsigned  index) const
inline

Returns index of rear channel for adm number index.

◆ get_adaptation_ratio()

int adm_rtconfig_t::get_adaptation_ratio ( ) const
inline

Member Data Documentation

◆ front_channels

std::vector<int> adm_rtconfig_t::front_channels
private

Indices of channels containing the signals from the front microphones.

◆ rear_channels

std::vector<int> adm_rtconfig_t::rear_channels
private

Indices of channels containing the signals from the rear microphones.

◆ adaptation_ratio

int adm_rtconfig_t::adaptation_ratio
private

Prescale.

◆ lp_coeffs

MHASignal::waveform_t* adm_rtconfig_t::lp_coeffs
private

Lowpass filter coefficients.

◆ decomb_coeffs

std::vector<MHASignal::waveform_t*> adm_rtconfig_t::decomb_coeffs
private

Decomb-Filter coefficients.

◆ adms

std::vector<adm_t *> adm_rtconfig_t::adms
private

ADMs.


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