Quantise Class Reference

Convert positive floats to quantised ints. More...

#include <Quantise.h>

Inheritance diagram for Quantise:
QuantisePN

List of all members.

Public Member Functions

 Quantise (int levels, float lower, float upper)
 Intialise the class using the number of quantum levels wanted and the float range.
 Quantise (void)
 Construct the class and initialise later.
void calculateBounds (int levels, float lower, float upper)
 Compute the statistics needed for quantisation (if not done during construction).
virtual int convertToInt (float value)
 Convert a float value to an int.
virtual float convertToFloat (int value)
 Convert an int value to a float.
void buildLookUpTable (void)
 Build a lookup table to reduce later int to float computation.
float useLookUpTable (int value)
 Convert an int to a float using the lookup table.
float lowerBound (void)
 Return the float lower bound.
float upperBound (void)
 Return the float upper bound.
int levels (void)
 Return the number of levels.

Detailed Description

Convert positive floats to quantised ints.

This class is used to convert a set of positive floats to ints and the quantised ints to floats using a mapping table computed using the set bounds.

Author
lapark
Revision
1.3
Date
2009/10/08 06:41:30
Id
Quantise.h,v 1.3 2009/10/08 06:41:30 lapark Exp

The documentation for this class was generated from the following files:
 All Classes Functions Variables Friends

Generated on Tue Nov 10 14:12:16 2009 for textIR by  doxygen 1.6.1