Package | Description |
---|---|
gov.sandia.cognition.collection |
Provides commonly useful collection implementations.
|
gov.sandia.cognition.math |
Provides classes for mathematical computation.
|
Modifier and Type | Field and Description |
---|---|
protected LogNumber |
AbstractLogNumberMap.SimpleEntry.value
Value associated with the entry
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<KeyType,LogNumber> |
AbstractLogNumberMap.SimpleEntrySet.map
Backing map
|
Modifier and Type | Method and Description |
---|---|
LogNumber |
AbstractLogNumberMap.getLog(KeyType key)
Gets the LogNumber at the given key
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractLogNumberMap.setLog(KeyType key,
LogNumber logValue)
Sets the LogNumber at the given key
|
Constructor and Description |
---|
SimpleEntry(KeyType key,
LogNumber value)
Creates a new instance of SimpleEntry
|
Constructor and Description |
---|
AbstractLogNumberMap(java.util.Map<KeyType,LogNumber> map)
Creates a new instance of AbstractMutableDoubleMap
|
SimpleEntrySet(java.util.Map<KeyType,LogNumber> map)
Creates a new instance of SimpleEntrySet
|
SimpleIterator(java.util.Iterator<? extends java.util.Map.Entry<KeyType,LogNumber>> delegate)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
LogNumber |
LogNumber.absoluteValue()
Returns a new
LogNumber that represents the absolute value
of this LogNumber . |
LogNumber |
LogNumber.clone() |
static LogNumber |
LogNumber.createFromLogValue(boolean negative,
double logValue)
Creates a new
LogNumber from the given value that is
already in log-space. |
static LogNumber |
LogNumber.createFromLogValue(double logValue)
Creates a new
LogNumber from the given value that is
already in log-space. |
static LogNumber |
LogNumber.createFromValue(double value)
Creates a new
LogNumber from the given value. |
LogNumber |
LogNumber.divide(LogNumber other)
Divides this value by another value and returns the result.
|
LogNumber |
LogNumber.dotTimes(LogNumber other) |
LogNumber |
LogNumber.inverse() |
LogNumber |
LogNumber.max(LogNumber other)
A new
LogNumber that is the maximum of this and another. |
LogNumber |
LogNumber.min(LogNumber other)
A new
LogNumber that is the minimum of this and another. |
LogNumber |
LogNumber.minus(LogNumber other) |
LogNumber |
LogNumber.negative() |
LogNumber |
LogNumber.plus(LogNumber other) |
LogNumber |
LogNumber.power(double power)
Returns a new
LogNumber representing this log number taken
to the given power. |
LogNumber |
LogNumber.scale(double scaleFactor) |
LogNumber |
LogNumber.scaledMinus(double scaleFactor,
LogNumber other) |
LogNumber |
LogNumber.scaledPlus(double scaleFactor,
LogNumber other) |
LogNumber |
LogNumber.times(LogNumber other)
Multiples this value times another value and returns the result.
|
Modifier and Type | Method and Description |
---|---|
int |
LogNumber.compareTo(LogNumber other) |
LogNumber |
LogNumber.divide(LogNumber other)
Divides this value by another value and returns the result.
|
void |
LogNumber.divideEquals(LogNumber other)
Divides this value by another value and stores the result in
this value.
|
LogNumber |
LogNumber.dotTimes(LogNumber other) |
void |
LogNumber.dotTimesEquals(LogNumber other) |
boolean |
LogNumber.equals(LogNumber other,
double effectiveZero) |
LogNumber |
LogNumber.max(LogNumber other)
A new
LogNumber that is the maximum of this and another. |
void |
LogNumber.maxEquals(LogNumber other)
Changes this value to be the maximum of this value or the given value.
|
LogNumber |
LogNumber.min(LogNumber other)
A new
LogNumber that is the minimum of this and another. |
void |
LogNumber.minEquals(LogNumber other)
Changes this value to be the minimum of this value or the given value.
|
LogNumber |
LogNumber.minus(LogNumber other) |
void |
LogNumber.minusEquals(LogNumber other) |
LogNumber |
LogNumber.plus(LogNumber other) |
void |
LogNumber.plusEquals(LogNumber other) |
LogNumber |
LogNumber.scaledMinus(double scaleFactor,
LogNumber other) |
void |
LogNumber.scaledMinusEquals(double scaleFactor,
LogNumber other) |
LogNumber |
LogNumber.scaledPlus(double scaleFactor,
LogNumber other) |
void |
LogNumber.scaledPlusEquals(double scaleFactor,
LogNumber other) |
LogNumber |
LogNumber.times(LogNumber other)
Multiples this value times another value and returns the result.
|
void |
LogNumber.timesEquals(LogNumber other)
Multiplies this value times another value and stores the result in
this value.
|
Constructor and Description |
---|
LogNumber(LogNumber other)
Copies a given LogNumber.
|