#include <Quantizer.h>
Inheritance diagram for prapi::UniformQuantizer:

It divides the feature space into equally spaced bins.
Public Methods | |
| UniformQuantizer (int lev, double origMax, double origMin=0.0) | |
| Create a new UniformQuantizer instance. | |
| void | setMin (double min) |
| void | setMax (double max) |
| double | getMin (void) const |
| double | getMax (void) const |
| int | getBinIndex (double value) throw (QuantizationException&) |
| Get the bin index for the given value, i.e. | |
|
||||||||||||||||
|
Create a new UniformQuantizer instance. Example: UniformQuantizer q(64,256); //drop two lsb's of 8-bit feature values
|
|
|
Get the bin index for the given value, i.e. quantize the value.
Implements prapi::Quantizer. |