Class manages Data Quantization function
Proud::CQuantizer::CQuantizer |
( |
double |
min, |
|
|
double |
max, |
|
|
uint32_t |
granulation |
|
) |
| |
|
inline |
Constructor
- Parameters
-
min | the quantized value will not be entered and no less than this value. |
max | the quantized value will not be entered and no more than this value. |
granulation | the quantized value has integer type. This value points that the quantized value is to be converted from 0 to which integer. Larger value provides more pricise quantized value but the number of bits required by quantized data. |
double Proud::CQuantizer::Dequantize |
( |
uint32_t |
value | ) |
|
|
inline |
uint32_t Proud::CQuantizer::Quantize |
( |
double |
value | ) |
|
|
inline |