| Package | Description |
|---|---|
| org.opentrafficsim.core.value.vdouble.scalar |
Double Scalar storage and calculations with units, absolute/relative.
|
| Modifier and Type | Method and Description |
|---|---|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.abs()
Set the value(s) to their absolute value.
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.acos()
Set the value(s) to the arc cosine of the value(s); the resulting angle is in the range 0.0 through pi.
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.asin()
Set the value(s) to the arc sine of the value(s); the resulting angle is in the range -pi/2 through pi/2.
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.atan()
Set the value(s) to the arc tangent of the value(s); the resulting angle is in the range -pi/2 through pi/2.
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.cbrt()
Set the value(s) to the(ir) cube root.
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.ceil()
Set the value(s) to the smallest (closest to negative infinity) value(s) that are greater than or equal to the argument
and equal to a mathematical integer.
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.copy()
Create a deep copy of this Value.
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.cos()
Set the value(s) to the trigonometric cosine of the value(s).
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.cosh()
Set the value(s) to the hyperbolic cosine of the value(s).
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.decrementBy(DoubleScalar.Rel<U> decrement)
Decrement the value by the supplied value and return the result.
|
static MutableDoubleScalar.Rel<SIUnit> |
DoubleScalar.divide(DoubleScalar.Rel<?> left,
DoubleScalar.Rel<?> right)
Divide two values; the result is a new instance with a different (existing or generated) SI unit.
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.divideBy(double constant)
Scale the value(s) by the inverse of a factor; i.e.
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.exp()
Set the value(s) to Euler's number e raised to the power of the value(s).
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.expm1()
Set the value(s) to Euler's number e raised to the power of the value(s) minus 1 (e^x - 1).
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.floor()
Set the value(s) to the largest (closest to positive infinity) value(s) that are less than or equal to the argument and
equal to a mathematical integer.
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.incrementBy(DoubleScalar.Rel<U> increment)
Increment the value by the supplied value and return the result.
|
static <U extends Unit<U>> |
DoubleScalar.interpolate(DoubleScalar.Rel<U> zero,
DoubleScalar.Rel<U> one,
double ratio)
Interpolate between or extrapolate over two values.
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.inv()
Set the value(s) to the complement (1.0/x) of the value(s).
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.log()
Set the value(s) to the natural logarithm (base e) of the value(s).
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.log10()
Set the value(s) to the base 10 logarithm of the value(s).
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.log1p()
Set the value(s) to the natural logarithm of the sum of the value(s) and 1.
|
static <U extends Unit<U>> |
DoubleScalar.minus(DoubleScalar.Abs<U> valueAbs1,
DoubleScalar.Abs<U> valueAbs2)
Subtract two absolute values.
|
static <U extends Unit<U>> |
DoubleScalar.minus(DoubleScalar.Rel<U> left,
DoubleScalar.Rel<U> right)
Subtract a relative value from a relative value.
|
static MutableDoubleScalar.Rel<SIUnit> |
DoubleScalar.multiply(DoubleScalar.Rel<?> left,
DoubleScalar.Rel<?> right)
Multiply two values; the result is a new instance with a different (existing or generated) SI unit.
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.multiplyBy(double constant)
Scale the value(s) by a factor.
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.mutable()
Create a mutable version of this DoubleScalar.
|
MutableDoubleScalar.Rel<U> |
DoubleScalar.Rel.mutable()
Create a mutable version of this DoubleScalar.
|
static <U extends Unit<U>> |
DoubleScalar.plus(DoubleScalar.Rel<U> left,
DoubleScalar.Rel<U> right)
Add a Relative value to a Relative value.
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.pow(double x)
Set the value(s) to the value(s) raised to the power of the argument.
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.rint()
Set the value(s) to the value(s) that are closest in value to the argument and equal to a mathematical integer.
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.signum()
Set the value(s) to the signum function of the value(s); zero if the argument is zero, 1.0 if the argument is greater
than zero, -1.0 if the argument is less than zero.
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.sin()
Set the value(s) to the trigonometric sine of the value(s).
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.sinh()
Set the value(s) to the hyperbolic sine of the value(s).
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.sqrt()
Set the value(s) to the correctly rounded positive square root of the value(s).
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.tan()
Set the value(s) to the trigonometric tangent of the value(s).
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.tanh()
Set the value(s) to the hyperbolic tangent of the value(s).
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.toDegrees()
Set the value(s) to approximately equivalent angle(s) measured in degrees.
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.toRadians()
Set the value(s) to approximately equivalent angle(s) measured in radians.
|
| Modifier and Type | Method and Description |
|---|---|
int |
MutableDoubleScalar.Rel.compareTo(MutableDoubleScalar.Rel<U> o) |
boolean |
MutableDoubleScalar.Rel.eq(MutableDoubleScalar.Rel<U> o)
Test if this DoubleScalar.Rel<U> is equal to a MutableDoubleScalar.Rel<U>.
|
boolean |
DoubleScalar.Rel.eq(MutableDoubleScalar.Rel<U> o)
Test if this DoubleScalar.Rel<U> is equal to a MutableDoubleScalar.Rel<U>.
|
boolean |
MutableDoubleScalar.Rel.ge(MutableDoubleScalar.Rel<U> o)
Test if this DoubleScalar.Rel<U> is greater than a MutableDoubleScalar.Rel<U>.
|
boolean |
DoubleScalar.Rel.ge(MutableDoubleScalar.Rel<U> o)
Test if this DoubleScalar.Rel<U> is greater than a MutableDoubleScalar.Rel<U>.
|
boolean |
MutableDoubleScalar.Rel.gt(MutableDoubleScalar.Rel<U> o)
Test if this DoubleScalar.Rel<U> is greater than or equal to a MutableDoubleScalar.Rel<U>.
|
boolean |
DoubleScalar.Rel.gt(MutableDoubleScalar.Rel<U> o)
Test if this DoubleScalar.Rel<U> is greater than or equal to a MutableDoubleScalar.Rel<U>.
|
boolean |
MutableDoubleScalar.Rel.le(MutableDoubleScalar.Rel<U> o)
Test if this DoubleScalar.Rel<U> is less than or equal to a MutableDoubleScalar.Rel<U>.
|
boolean |
DoubleScalar.Rel.le(MutableDoubleScalar.Rel<U> o)
Test if this DoubleScalar.Rel<U> is less than or equal to a MutableDoubleScalar.Rel<U>.
|
boolean |
MutableDoubleScalar.Rel.lt(MutableDoubleScalar.Rel<U> o)
Test if this DoubleScalar.Rel<U> is less than a MutableDoubleScalar.Rel<U>.
|
boolean |
DoubleScalar.Rel.lt(MutableDoubleScalar.Rel<U> o)
Test if this DoubleScalar.Rel<U> is less than a MutableDoubleScalar.Rel<U>.
|
boolean |
MutableDoubleScalar.Rel.ne(MutableDoubleScalar.Rel<U> o)
Test if this DoubleScalar.Rel<U> is not equal to a MutableDoubleScalar.Rel<U>.
|
boolean |
DoubleScalar.Rel.ne(MutableDoubleScalar.Rel<U> o)
Test if this DoubleScalar.Rel<U> is not equal to a MutableDoubleScalar.Rel<U>.
|
Copyright © 2014–2015 Delft University of Technology. All rights reserved.