Package | Description |
---|---|
ptolemy.data |
Packages for manipulating data that passes between actors.
|
ptolemy.data.type |
The type system.
|
ptolemy.math |
Math classes.
|
Constructor and Description |
---|
FixMatrixToken(FixPoint[][] value,
Precision precision)
Construct a FixMatrixToken with the specified 2-D matrix.
|
FixToken(double value,
Precision precision)
Construct a FixToken representing the specified value with the
specified precision.
|
Modifier and Type | Method and Description |
---|---|
Precision |
FixType.getPrecision()
Return the precision associated with this FixType.
|
Constructor and Description |
---|
FixType(Precision precision)
Construct a new fix type.
|
Modifier and Type | Field and Description |
---|---|
protected Precision |
FixPointQuantization._precision
The precision.
|
Modifier and Type | Method and Description |
---|---|
static Precision |
FixPoint.addPrecision(Precision leftArgument,
Precision rightArgument)
Determines the Precision of an add operation between two
FixPoint values.
|
static Precision |
FixPoint.dividePrecision(Precision leftArgument,
Precision rightArgument)
Determines the Precision of a divide operation between
two FixPoint values.
|
Precision |
FixPointQuantization.getMantissaPrecision()
Return the precision of the mantissa of the value.
|
abstract Precision |
Quantization.getMantissaPrecision()
Return the precision fore the mantissa of a compliant
2's complement representation.
|
Precision |
FixPointQuantization.getPrecision()
Return the precision.
|
abstract Precision |
Quantization.getPrecision()
Return the Precision.
|
Precision |
FixPoint.getPrecision()
Return a precision to represent this number.
|
static Precision |
FixPoint.multiplyPrecision(Precision leftArgument,
Precision rightArgument)
Determines the Precision of an multiply operation between
two FixPoint values.
|
abstract Precision |
Precision.PrecisionFormat.parseString(java.lang.String str)
Parse the given String argument using the rules of the specific
PrecisionFormat that is defined.
|
Precision |
Precision.IntegerFractionPrecisionFormat.parseString(java.lang.String str) |
Precision |
Precision.LengthIntegerPrecisionFormat.parseString(java.lang.String str) |
Precision |
Precision.LengthExponentPrecisionFormat.parseString(java.lang.String str) |
Precision |
Precision.VHDLPrecisionFormat.parseString(java.lang.String str) |
static Precision |
FixPoint.subtractPrecision(Precision leftArgument,
Precision rightArgument)
Determines the Precision of an subtract operation between two
FixPoint values.
|
static Precision |
Precision.union(Precision precisionA,
Precision precisionB)
Return the precision that is the maximum of the two supplied
precisions in both the length and exponent.
|
Modifier and Type | Method and Description |
---|---|
static Precision |
FixPoint.addPrecision(Precision leftArgument,
Precision rightArgument)
Determines the Precision of an add operation between two
FixPoint values.
|
static Precision |
FixPoint.dividePrecision(Precision leftArgument,
Precision rightArgument)
Determines the Precision of a divide operation between
two FixPoint values.
|
static boolean |
Overflow.isOutOfRange(java.math.BigInteger bigInt,
Precision precision)
Determines whether the given BigInteger unscaled value is considered
an "underflow" or an "overflow" under the given Precision constraint.
|
static boolean |
Overflow.isOverflow(java.math.BigInteger value,
Precision precision)
Determines whether the given BigInteger unscaled value is considered
an "overflow" under the given Precision constraint.
|
static boolean |
Overflow.isUnderflow(java.math.BigInteger bigInt,
Precision precision)
Determines whether the given BigInteger unscaled value is considered
an "underflow" under the given Precision constraint.
|
static Precision |
FixPoint.multiplyPrecision(Precision leftArgument,
Precision rightArgument)
Determines the Precision of an multiply operation between
two FixPoint values.
|
abstract java.lang.String |
Precision.PrecisionFormat.printPrecisionFormat(Precision p)
Creates a valid String representation of the Precision object
based on the rules of the given string format.
|
java.lang.String |
Precision.IntegerFractionPrecisionFormat.printPrecisionFormat(Precision p) |
java.lang.String |
Precision.LengthIntegerPrecisionFormat.printPrecisionFormat(Precision p) |
java.lang.String |
Precision.ExpressionLanguagePrecisionFormat.printPrecisionFormat(Precision p)
Regular expression for ExpressionLanguagePrecisionFormat.
|
java.lang.String |
Precision.LengthExponentPrecisionFormat.printPrecisionFormat(Precision p) |
java.lang.String |
Precision.VHDLPrecisionFormat.printPrecisionFormat(Precision p) |
abstract FixPoint |
Overflow.quantize(java.math.BigInteger integerValue,
Precision precision)
Return a new FixPoint object based on the given BigInteger
value and Precision constraint.
|
FixPoint |
Overflow.Grow.quantize(java.math.BigInteger integerValue,
Precision precision) |
FixPoint |
Overflow.Minimize.quantize(java.math.BigInteger integerValue,
Precision precision) |
FixPoint |
Overflow.Modulo.quantize(java.math.BigInteger integerValue,
Precision precision) |
FixPoint |
Overflow.Saturate.quantize(java.math.BigInteger integerValue,
Precision precision) |
FixPoint |
Overflow.ToZero.quantize(java.math.BigInteger integerValue,
Precision precision) |
FixPoint |
Overflow.Trap.quantize(java.math.BigInteger integerValue,
Precision precision) |
static FixPoint |
Overflow.quantizeGrow(java.math.BigInteger integerValue,
Precision precision)
Quantize a FixPoint value using a "grow" overflow strategy.
|
static FixPoint |
Overflow.quantizeMinimum(java.math.BigInteger bigInt,
Precision p)
Generates a new FixPoint data value based on the unscaled
value bigInt using as few bits as possible.
|
static FixPoint |
Overflow.quantizeModulo(java.math.BigInteger integerValue,
Precision precision)
Quantize a FixPoint value using a "modulo" overflow strategy.
|
static FixPoint |
Overflow.quantizeSaturate(java.math.BigInteger integerValue,
Precision precision)
Quantize a FixPoint value using a "saturate" overflow strategy.
|
static FixPoint |
Overflow.quantizeToZero(java.math.BigInteger integerValue,
Precision precision)
Quantize a FixPoint value using a "to Zero" overflow strategy.
|
static FixPoint |
Quantizer.round(java.math.BigDecimal value,
Precision precision)
Return the fixed point number that is nearest to the specified
value, but has the given precision, possibly introducing
quantization or overflow errors.
|
static FixPoint |
Quantizer.round(double value,
Precision precision)
Return the fixed point number that is nearest to the specified
value, but has the given precision, possibly introducing
quantization or overflow errors.
|
static FixPoint |
Quantizer.round(FixPoint value,
Precision newPrecision,
Overflow mode)
Return the fixed point number that is nearest to the specified
value, but has the given precision, possibly introducing
quantization or overflow errors.
|
static FixPoint |
Quantizer.roundDown(java.math.BigDecimal value,
Precision precision)
Return the nearest fixed point number with less than or equal
magnitude that has the given precision, possibly introducing
quantization or overflow errors.
|
static FixPoint |
Quantizer.roundDown(double value,
Precision precision)
Return the nearest fixed point number with less than or equal
magnitude that has the given precision, possibly introducing
quantization or overflow errors.
|
static FixPoint |
Quantizer.roundDown(FixPoint value,
Precision newPrecision,
Overflow mode)
Return the nearest fixed point number with less than or equal
magnitude that has the given precision, possibly introducing
quantization or overflow errors.
|
static FixPoint |
Quantizer.roundNearestEven(java.math.BigDecimal value,
Precision precision)
Return the fixed point number that is nearest to the specified
value, but has the given precision, possibly introducing
quantization or overflow errors.
|
static FixPoint |
Quantizer.roundNearestEven(double value,
Precision precision)
Return the fixed point number that is nearest to the specified
value, but has the given precision, possibly introducing
quantization or overflow errors.
|
static FixPoint |
Quantizer.roundNearestEven(FixPoint value,
Precision newPrecision,
Overflow mode)
Return the fixed point number that is nearest to the specified
value, but has the given precision, possibly introducing
quantization or overflow errors.
|
static FixPoint |
Quantizer.roundToZero(java.math.BigDecimal value,
Precision precision)
Return the fixed point number that is nearest to the specified
value, but has magnitude no greater that the specified value,
and has the given precision, possibly introducing
quantization or overflow errors.
|
static FixPoint |
Quantizer.roundToZero(double value,
Precision precision)
Return the fixed point number that is nearest to the specified
value, but has magnitude no greater that the specified value,
and has the given precision, possibly introducing
quantization or overflow errors.
|
static FixPoint |
Quantizer.roundToZero(FixPoint value,
Precision newPrecision,
Overflow mode)
Return the fixed point number that is nearest to the specified
value, but has magnitude no greater than the specified value,
and has the given precision, possibly introducing
quantization or overflow errors.
|
static FixPoint |
Quantizer.roundUp(java.math.BigDecimal value,
Precision precision)
Return the smallest greater than or equal fixed point number
that has the given precision, possibly introducing
quantization or overflow errors.
|
static FixPoint |
Quantizer.roundUp(double value,
Precision precision)
Return the smallest greater than or equal fixed point number
that has the given precision, possibly introducing
quantization or overflow errors.
|
static FixPoint |
Quantizer.roundUp(FixPoint value,
Precision newPrecision,
Overflow mode)
Return the smallest greater than or equal fixed point number
that has the given precision, possibly introducing
quantization or overflow errors.
|
FixPointQuantization |
FixPointQuantization.setPrecision(Precision precision)
Return a FixPointQuantization with a changed precision.
|
static Precision |
FixPoint.subtractPrecision(Precision leftArgument,
Precision rightArgument)
Determines the Precision of an subtract operation between two
FixPoint values.
|
static FixPoint |
Quantizer.truncate(java.math.BigDecimal value,
Precision precision)
Deprecated.
Use roundToZero instead.
|
static FixPoint |
Quantizer.truncate(double value,
Precision precision)
Deprecated.
Use roundToZero instead.
|
static FixPoint |
Quantizer.truncate(FixPoint value,
Precision newPrecision,
Overflow mode)
Deprecated.
Use roundToZero instead.
|
static Precision |
Precision.union(Precision precisionA,
Precision precisionB)
Return the precision that is the maximum of the two supplied
precisions in both the length and exponent.
|
Constructor and Description |
---|
FixPointQuantization(Precision precision,
Overflow overflow,
Rounding rounding)
Construct a FixPointQuantization with specified precision, overflow
and rounding.
|