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

dynamic compression related classes and functions More...

Classes

class  dc_afterburn_vars_t
 Variables for dc_afterburn_t class. More...
 
class  dc_afterburn_rt_t
 Real-time class for after burn effect. More...
 
class  dc_afterburn_t
 Afterburn class, to be defined as a member of compressors. More...
 
class  gaintable_t
 Gain table class. More...
 

Functions

mha_real_t interp1 (const std::vector< mha_real_t > &vX, const std::vector< mha_real_t > &vY, mha_real_t X)
 One-dimensional linear interpolation. More...
 
mha_real_t interp2 (const std::vector< mha_real_t > &vX, const std::vector< mha_real_t > &vY, const std::vector< std::vector< mha_real_t > > &mZ, mha_real_t X, mha_real_t Y)
 Linear interpolation in a two-dimensional field. More...
 

Detailed Description

dynamic compression related classes and functions

Function Documentation

◆ interp1()

mha_real_t DynComp::interp1 ( const std::vector< mha_real_t > &  vX,
const std::vector< mha_real_t > &  vY,
mha_real_t  X 
)

One-dimensional linear interpolation.

Parameters
vXVector with input samples.
vYVector with values at input samples.
XInput value to be interpolated.
Return values
Interpolatedvalue Y(X) at position X.

◆ interp2()

mha_real_t DynComp::interp2 ( const std::vector< mha_real_t > &  vX,
const std::vector< mha_real_t > &  vY,
const std::vector< std::vector< mha_real_t > > &  mZ,
mha_real_t  X,
mha_real_t  Y 
)

Linear interpolation in a two-dimensional field.

Parameters
vXVector with input samples, first dimension.
vYVector with input samples, second dimension.
mZField with values at input samples.
XFirst dimension of input value to be interpolated.
YSecond dimension of input value to be interpolated.
Return values
Interpolatedvalue Z(X,Y) at position X,Y.