| Package | Description |
|---|---|
| org.djunits.value.vdouble.scalar |
Double Scalar storage and calculations with units, absolute/relative.
|
| org.djunits.value.vdouble.vector |
Double Vector storage and calculations with units, absolute/relative, sparse/dense.
|
| Modifier and Type | Method and Description |
|---|---|
Density |
Density.abs()
Set the value(s) to their absolute value.
|
Density |
Density.acos()
Set the value(s) to the arc cosine of the value(s); the resulting angle is in the range 0.0 through pi.
|
Density |
Density.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.
|
Density |
Density.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.
|
Density |
Density.cbrt()
Set the value(s) to the(ir) cube root.
|
Density |
Density.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.
|
Density |
Density.cos()
Set the value(s) to the trigonometric cosine of the value(s).
|
Density |
Density.cosh()
Set the value(s) to the hyperbolic cosine of the value(s).
|
Density |
Density.divideBy(double divisor)
Scale the value(s) by the inverse of a factor; i.e.
|
Density |
Mass.divideBy(Volume v)
Calculate the division of Mass and Volume, which results in a Density scalar.
|
Density |
Density.exp()
Set the value(s) to Euler's number e raised to the power of the value(s).
|
Density |
Density.expm1()
Set the value(s) to Euler's number e raised to the power of the value(s) minus 1 (e^x - 1).
|
Density |
Density.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.
|
static Density |
Density.interpolate(Density zero,
Density one,
double ratio)
Interpolate between two values.
|
Density |
Density.inv()
Set the value(s) to the complement (1.0/x) of the value(s).
|
Density |
Density.log()
Set the value(s) to the natural logarithm (base e) of the value(s).
|
Density |
Density.log10()
Set the value(s) to the base 10 logarithm of the value(s).
|
Density |
Density.log1p()
Set the value(s) to the natural logarithm of the sum of the value(s) and 1.
|
Density |
Density.minus(Density v)
Relative scalar minus Relative scalar = Relative scalar.
|
Density |
Dimensionless.Rel.multiplyBy(Density v)
Calculate the multiplication of Dimensionless and Density, which results in a Density scalar.
|
Density |
Density.multiplyBy(double factor)
Scale the value(s) by a factor.
|
Density |
Density.plus(Density v)
Relative scalar plus Relative scalar = Relative scalar.
|
Density |
Density.pow(double x)
Set the value(s) to the value(s) raised to the power of the argument.
|
Density |
Density.rint()
Set the value(s) to the value(s) that are closest in value to the argument and equal to a mathematical integer.
|
Density |
Density.round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
Density |
Density.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.
|
Density |
Density.sin()
Set the value(s) to the trigonometric sine of the value(s).
|
Density |
Density.sinh()
Set the value(s) to the hyperbolic sine of the value(s).
|
Density |
Density.sqrt()
Set the value(s) to the correctly rounded positive square root of the value(s).
|
Density |
Density.tan()
Set the value(s) to the trigonometric tangent of the value(s).
|
Density |
Density.tanh()
Set the value(s) to the hyperbolic tangent of the value(s).
|
Density |
Density.toDegrees()
Set the value(s) to approximately equivalent angle(s) measured in degrees.
|
Density |
Density.toRadians()
Set the value(s) to approximately equivalent angle(s) measured in radians.
|
| Modifier and Type | Method and Description |
|---|---|
Volume |
Mass.divideBy(Density v)
Calculate the division of Mass and Density, which results in a Volume scalar.
|
Dimensionless.Rel |
Density.divideBy(Density v)
Calculate the division of Density and Density, which results in a Dimensionless scalar.
|
static Density |
Density.interpolate(Density zero,
Density one,
double ratio)
Interpolate between two values.
|
Density |
Density.minus(Density v)
Relative scalar minus Relative scalar = Relative scalar.
|
Mass |
Volume.multiplyBy(Density v)
Calculate the multiplication of Volume and Density, which results in a Mass scalar.
|
Density |
Dimensionless.Rel.multiplyBy(Density v)
Calculate the multiplication of Dimensionless and Density, which results in a Density scalar.
|
Density |
Density.plus(Density v)
Relative scalar plus Relative scalar = Relative scalar.
|
| Modifier and Type | Method and Description |
|---|---|
Density |
MutableDensityVector.get(int index)
Retrieve the value stored at a specified index as a DoubleScalar.
|
Density |
DensityVector.get(int index)
Retrieve the value stored at a specified index as a DoubleScalar.
|
| Constructor and Description |
|---|
Dense(Density[] values)
Construct a new Relative Dense Immutable Density Vector.
|
Dense(Density[] values)
Construct a new Relative Dense Immutable Density Vector.
|
Sparse(Density[] values)
Construct a new Relative Sparse Immutable Density Vector.
|
Sparse(Density[] values)
Construct a new Relative Sparse Immutable Density Vector.
|
Copyright © 2015 Delft University of Technology. All rights reserved.