The Open Master Hearing Aid (openMHA)
openMHA
Open community platform for hearing aid algorithm research
|
Simple simulation of fixpoint quantization. More...
Public Member Functions | |
quantizer_t (unsigned int num_bits) | |
Constructor. More... | |
void | operator() (mha_wave_t &s) |
Quantization of a waveform fragment. More... | |
Private Attributes | |
bool | limit |
mha_real_t | upscale |
mha_real_t | downscale |
mha_real_t | up_limit |
Simple simulation of fixpoint quantization.
MHASignal::quantizer_t::quantizer_t | ( | unsigned int | num_bits | ) |
Constructor.
num_bits | Number of bits to simulate, or zero for limiting to [-1,1] only. |
void MHASignal::quantizer_t::operator() | ( | mha_wave_t & | s | ) |
Quantization of a waveform fragment.
s | Waveform fragment to be quantized. |
|
private |
|
private |
|
private |
|
private |