Quantizer for converting between "integer" and "double" with scale and offset. More...
#include <mi32/quantizer.h>

Public Member Functions | |
| QUANTIZER (double ScaleQtoD, double OffsetQtoD) | |
| _TypeQuantized | CalcInt (double ValueD) const |
Quantizer for converting between "integer" and "double" with scale and offset.
| QUANTIZER< _TypeQuantized >::QUANTIZER | ( | double | ScaleQtoD, | |
| double | OffsetQtoD | |||
| ) | [inline] |
Default constructor, uses scale of 1 and offset of 0.
Construct with scale and offset.
| ScaleQtoD | Scale from "quantized" to "double" must not be 0 | |
| OffsetQtoD | Offset from "quantized" to "double", applied after scaling |
| _TypeQuantized QUANTIZER< _TypeQuantized >::CalcInt | ( | double | ValueD | ) | const [inline] |
Calculate quantized integer value from "double" value.
No range check is performed.
| ValueD | Dequantized value |
1.6.1