Package | Description |
---|---|
ptolemy.data |
Packages for manipulating data that passes between actors.
|
ptolemy.math |
Math classes.
|
Modifier and Type | Method and Description |
---|---|
protected ScalarToken |
FixToken._divide(ScalarToken rightArgument,
Quantization quant)
Return a new token whose value is the value of this token
divided by the value of the argument token.
|
protected FixToken |
FixToken._quantize(Quantization quant)
Return a new token whose value is constrained to comply
with a quantization specification.
|
FixToken |
FixToken.quantize(Quantization quant)
Return a new token whose value is constrained to comply
with a quantization specification.
|
Modifier and Type | Class and Description |
---|---|
class |
FixPointQuantization
The FixPointQuantization class defines the mapping of numeric values
with unlimited precision to the finite precision supported by arithmetic
using the FixPoint class.
|
Modifier and Type | Method and Description |
---|---|
FixPoint |
FixPoint.add(FixPoint arg,
Quantization quant)
Return a FixPoint with a value equal to the sum of this
FixPoint and the argument.
|
FixPoint |
FixPoint.divide(FixPoint arg,
Quantization quant)
Return a FixPoint equal to the division of this FixPoint by the
argument, after application of a quantization specification to
the result.
|
java.math.BigInteger |
Overflow.minusInfinity(Quantization quant)
Return the value of minus infinity, or null if unrepresentable.
|
java.math.BigInteger |
Overflow.Saturate.minusInfinity(Quantization quant) |
java.math.BigInteger |
Overflow.ToZero.minusInfinity(Quantization quant) |
FixPoint |
FixPoint.multiply(FixPoint arg,
Quantization quant)
Return a FixPoint with a value equal to the product of this
FixPoint and the argument.
|
java.math.BigInteger |
Overflow.plusInfinity(Quantization quant)
Return the value of plus infinity, or null if unrepresentable.
|
java.math.BigInteger |
Overflow.Saturate.plusInfinity(Quantization quant) |
java.math.BigInteger |
Overflow.ToZero.plusInfinity(Quantization quant) |
FixPoint |
FixPoint.quantize(Quantization quant)
Return the value after conversion to comply with a
quantization specification.
|
FixPoint |
FixPoint.subtract(FixPoint arg,
Quantization quant)
Return a FixPoint with a value equal to the difference of this
FixPoint and the argument.
|
Constructor and Description |
---|
FixPoint(java.math.BigDecimal bigDecimal,
Quantization quant)
Construct a FixPoint by converting a bigDecimal to comply
with a quantization specification.
|
FixPoint(double doubleValue,
Quantization quant)
Construct a FixPoint from a double.
|
FixPoint(FixPoint fix,
Quantization quant)
Construct a new FixPoint object by requantizing the
given FixPoint object with a new quantization specification.
|
FixPoint(int intValue,
Quantization quant)
Construct a FixPoint from an integer.
|
FixPoint(java.lang.String string,
Quantization quant)
Construct a FixPoint by converting the BigDecimal interpretation of
a string to comply with a quantization specification.
|