Convert real floats to quantised ints. More...
#include <QuantisePN.h>
Public Member Functions | |
QuantisePN (int levels, float lower, float upper) | |
Intialise the quantiser with the number of level and bounds. | |
int | convertToInt (float value) |
Convert a float to quantised int. | |
float | convertToFloat (int value) |
Convert a quantised int to float. |
Convert real floats to quantised ints.
This class is used to convert a set of real (positive and negative) floats to ints and the quantised ints to floats using a mapping table computed using the set bounds.