The FixPointQuantization class defines the mapping of numeric values with unlimited precision to the finite precision supported by arithmetic using the FixPoint class.
It comprises a
- Precision: to define the accuracy of the finite precision numbers.
- Overflow: to define the treatment of out-of-range numbers.
- Rounding: to define the loss of precision for in-range numbers.
The active class functionality is provided by the quantize method, which is normally invoked from FixPoint.quantize to enforce quantization constraints upon the result of an unconstrained computation.
An instance of the class is immutable, meaning that its value is set in the constructor and cannot then be modified.
@author Ed Willink
@version $Id: FixPointQuantization.java,v 1.29 2007/12/07 06:30:30 cxh Exp $
@since Ptolemy II 2.1
@Pt.ProposedRating Red (Ed.Willink)
@Pt.AcceptedRating Red
@see ptolemy.math.FixPoint
@see ptolemy.math.Precision
@see ptolemy.math.Overflow
@see ptolemy.math.Rounding