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

Public Methods | |
| Quantizer (int l=1) | |
| Create a quantizer with the given number of quantization levels. | |
| virtual | ~Quantizer () |
| virtual int | getLevels (void) const |
| Get the number of quantization levels. | |
| virtual void | setLevels (int l) |
| Set the number of quantization levels. | |
| virtual int | getBinIndex (double value)=0 throw (QuantizationException&) |
| Get the bin index for the given value, i.e. | |
Protected Attributes | |
| int | _iLevels |
|
|
Get the bin index for the given value, i.e. quantize the value.
Implemented in prapi::UniformQuantizer, and prapi::EqualAreaQuantizer. |
|
|
Set the number of quantization levels. The output values produced by getBinIndex will range from 0 to l-1. Reimplemented in prapi::EqualAreaQuantizer. |