The Open Master Hearing Aid (openMHA)
openMHA
Open community platform for hearing aid algorithm research
|
Gammatone Filterbank Analyzer Plugin. More...
Classes | |
struct | gtfb_analyzer::gtfb_analyzer_cfg_t |
Configuration for Gammatone Filterbank Analyzer. More... | |
class | gtfb_analyzer::gtfb_analyzer_t |
Gammatone Filterbank Analyzer Plugin. More... | |
Namespaces | |
gtfb_analyzer | |
Functions | |
static const mha_complex_t & | filter_complex (const mha_complex_t &input, const mha_complex_t &coeff, mha_complex_t *states, unsigned orders) |
Filters a complex input sample with the given filter coefficient. More... | |
static const mha_complex_t & | filter_real (mha_real_t input, mha_complex_t &tmp_complex, const mha_complex_t &coeff, mha_complex_t *states, unsigned orders, const mha_complex_t &normphase) |
Filters a real input sample with the given filter coefficient and applies the given normalization with phase correction. More... | |
Gammatone Filterbank Analyzer Plugin.
|
inlinestatic |
Filters a complex input sample with the given filter coefficient.
No normalization takes place. The implementation is tail-recursive and to exploit compiler optimization.
input | The complex input sample |
coeff | The complex filter coefficient |
states | Pointer to the array of complex filter states. |
orders | The filter order |
|
inlinestatic |
Filters a real input sample with the given filter coefficient and applies the given normalization with phase correction.
input | The real input sample |
tmp_complex | A reference to a mha_complex_t used for intermediate results. No assumptions should be made about the state of tmp_complex after the return of filter_real. This is an optimization to reduce the number of dtor/ctor calls of mha_complex_t |
coeff | The complex filter coefficient |
states | Pointer to the array of complex filter states. |
orders | The filter order |
normphase | Normalization coefficient including the phase correction |