![]() |
The Open Master Hearing Aid (openMHA)
openMHA
Open community platform for hearing aid algorithm research
|
Classes | |
| class | dc_vars_t |
| class for dc_simple plugin which registers variables to MHAParser. More... | |
| class | dc_vars_validator_t |
| Helper class to check sizes of configuration variable vectors. More... | |
| class | level_smoother_t |
| Class which computes smoothed input levels on individual bands, using an attack and release filter, which are a first order low pass filter and a maximum tracker filter, respectively. More... | |
| class | dc_t |
| Runtime config class for dc_simple plugin. More... | |
| class | dc_if_t |
| interface class for dc_simple More... | |
Typedefs | |
| typedef MHAPlugin::plugin_t< dc_t > | DC |
| Define alternate name for runtime_cfg_t. More... | |
| typedef MHAPlugin::config_t< level_smoother_t > | LEVEL |
| Define alternate name for config_t. More... | |
Functions | |
| void | test_fail (const std::vector< float > &v, unsigned int s, const std::string &name) |
| Checks size of vector. More... | |
| std::vector< float > | force_resize (const std::vector< float > &v, unsigned int s, const std::string &name) |
Creates a copy of vector v with s elements, provided that \v has either s elements or 1 elements. More... | |
| mha_real_t | not_zero (mha_real_t x, const std::string &comment) |
Helper function to throw an error if x is 0. More... | |
| typedef MHAPlugin::plugin_t<dc_t> dc_simple::DC |
Define alternate name for runtime_cfg_t.
Define alternate name for config_t.
| void dc_simple::test_fail | ( | const std::vector< float > & | v, |
| unsigned int | s, | ||
| const std::string & | name | ||
| ) |
Checks size of vector.
| [in] | v | The vector to check the size of. |
| [in] | s | Expected size of vector v. |
| [in] | name | Name of vector to include in error message when size does not match. |
| MHA_Error | if the size of v is neither s nor 1. |
| std::vector< float > dc_simple::force_resize | ( | const std::vector< float > & | v, |
| unsigned int | s, | ||
| const std::string & | name | ||
| ) |
Creates a copy of vector v with s elements, provided that \v has either s elements or 1 elements.
| [in] | v | The vector to copy elements from. |
| [in] | s | The desired number of elements in the output vector. |
| [in] | name | Name of vector to include in error message when input size does not match expectation. |
v with s elements. | MHA_Error | if size of v is neither s nor 1. |
| mha_real_t dc_simple::not_zero | ( | mha_real_t | x, |
| const std::string & | comment | ||
| ) |
Helper function to throw an error if x is 0.
| [in] | x | The value to check. |
| [in] | comment | Optional explanation for error message. |
| MHA_Error | if x == 0. |