Package | Description |
---|---|
ptolemy.math |
Math classes.
|
Modifier and Type | Class and Description |
---|---|
static class |
Rounding.RoundCeiling
Rounding class implementing the round ceiling strategy.
|
static class |
Rounding.RoundDown
Rounding class implementing the round down strategy.
|
static class |
Rounding.RoundFloor
Rounding class implementing the round floor strategy.
|
static class |
Rounding.RoundHalfCeiling
Rounding class implementing the round half ceiling strategy.
|
static class |
Rounding.RoundHalfDown
Rounding class implementing the round half down strategy.
|
static class |
Rounding.RoundHalfEven
Rounding class implementing the round half even strategy.
|
static class |
Rounding.RoundHalfFloor
Rounding class implementing the round half floor strategy.
|
static class |
Rounding.RoundHalfUp
Rounding class implementing the round half up strategy.
|
static class |
Rounding.RoundUp
Rounding class implementing the round up strategy.
|
Modifier and Type | Field and Description |
---|---|
protected Rounding |
Quantization._rounding
The rounding strategy.
|
static Rounding |
Rounding.GENERAL
Singleton implementing general rounding strategy.
|
static Rounding |
Rounding.UNKNOWN
Singleton implementing unknown rounding strategy.
|
static Rounding |
Rounding.UNNECESSARY
Singleton implementing unnecessary rounding strategy.
|
Modifier and Type | Method and Description |
---|---|
static Rounding |
Rounding.forName(java.lang.String name)
Return an instance of this class with the specified name.
|
static Rounding |
Rounding.getName(java.lang.String name)
Return an instance of this class with the specified name,
or null if none exists.
|
Rounding |
Quantization.getRounding()
Return the rounding strategy.
|
Modifier and Type | Method and Description |
---|---|
FixPointQuantization |
FixPointQuantization.setRounding(Rounding rounding)
Return a FixPointQuantization with a changed rounding strategy.
|
Constructor and Description |
---|
FixPointQuantization(Precision precision,
Overflow overflow,
Rounding rounding)
Construct a FixPointQuantization with specified precision, overflow
and rounding.
|
Quantization(Overflow overflow,
Rounding rounding)
Construct a Quantization with the given precision, overflow
strategy, and rounding strategy.
|