QUANTIZER< _TypeQuantized > Class Template Reference

Quantizer for converting between "integer" and "double" with scale and offset. More...

#include <mi32/quantizer.h>

Inheritance diagram for QUANTIZER< _TypeQuantized >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 QUANTIZER (double ScaleQtoD, double OffsetQtoD)
_TypeQuantized CalcInt (double ValueD) const

Detailed Description

template<typename _TypeQuantized>
class QUANTIZER< _TypeQuantized >

Quantizer for converting between "integer" and "double" with scale and offset.


Constructor & Destructor Documentation

template<typename _TypeQuantized >
QUANTIZER< _TypeQuantized >::QUANTIZER ( double  ScaleQtoD,
double  OffsetQtoD 
) [inline]

Default constructor, uses scale of 1 and offset of 0.

Construct with scale and offset.

Parameters:
ScaleQtoD Scale from "quantized" to "double" must not be 0
OffsetQtoD Offset from "quantized" to "double", applied after scaling

Member Function Documentation

template<typename _TypeQuantized >
_TypeQuantized QUANTIZER< _TypeQuantized >::CalcInt ( double  ValueD  )  const [inline]

Calculate quantized integer value from "double" value.

No range check is performed.

Parameters:
ValueD Dequantized value

The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:33:44 2012 for TNTsdk 2012 by  doxygen 1.6.1