Proud::CQuantizer Class Reference

Public Member Functions

 CQuantizer (double min, double max, uint32_t granulation)
 
uint32_t Quantize (double value)
 
double Dequantize (uint32_t value)
 

Detailed Description

Class manages Data Quantization function

Constructor & Destructor Documentation

Proud::CQuantizer::CQuantizer ( double  min,
double  max,
uint32_t  granulation 
)
inline

Constructor

Parameters
minthe quantized value will not be entered and no less than this value.
maxthe quantized value will not be entered and no more than this value.
granulationthe 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.

Member Function Documentation

double Proud::CQuantizer::Dequantize ( uint32_t  value)
inline

Recover quantized value

uint32_t Proud::CQuantizer::Quantize ( double  value)
inline

Quantizing