public class MutableDimensionlessVector extends AbstractMutableDoubleVectorRel<DimensionlessUnit,DimensionlessVector,MutableDimensionlessVector,Dimensionless> implements MathFunctionsDimensionless<MutableDimensionlessVector>
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
AbstractDoubleVectorRel.Itrdata| Constructor and Description |
|---|
MutableDimensionlessVector(Dimensionless[] values,
StorageType storageType)
Construct a new Relative Immutable Double DimensionlessVector.
|
MutableDimensionlessVector(double[] values,
DimensionlessUnit unit,
StorageType storageType)
Construct a new Relative Immutable Double DimensionlessVector.
|
MutableDimensionlessVector(DoubleVectorData data,
DimensionlessUnit unit) |
MutableDimensionlessVector(List<Dimensionless> values,
StorageType storageType)
Construct a new Relative Immutable Double DimensionlessVector.
|
MutableDimensionlessVector(List<Double> values,
DimensionlessUnit unit,
StorageType storageType)
Construct a new Relative Immutable Double DimensionlessVector.
|
MutableDimensionlessVector(SortedMap<Integer,Dimensionless> values,
int length,
StorageType storageType)
Construct a new Relative Immutable Double DimensionlessVector.
|
MutableDimensionlessVector(SortedMap<Integer,Double> values,
DimensionlessUnit unit,
int length,
StorageType storageType)
Construct a new Relative Immutable Double DimensionlessVector.
|
| Modifier and Type | Method and Description |
|---|---|
MutableDimensionlessVector |
acos()
Set the value(s) to the arc cosine of the value(s); the resulting angle is in the range 0.0 through pi.
|
MutableDimensionlessVector |
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.
|
MutableDimensionlessVector |
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.
|
MutableDimensionlessVector |
cbrt()
Set the value(s) to the(ir) cube root.
|
MutableDimensionlessVector |
cos()
Set the value(s) to the trigonometric cosine of the value(s).
|
MutableDimensionlessVector |
cosh()
Set the value(s) to the hyperbolic cosine of the value(s).
|
MutableDimensionlessVector |
exp()
Set the value(s) to Euler's number e raised to the power of the value(s).
|
MutableDimensionlessVector |
expm1()
Set the value(s) to Euler's number e raised to the power of the value(s) minus 1 (e^x - 1).
|
protected MutableDimensionlessVector |
instantiateMutableType(DoubleVectorData dvd,
DimensionlessUnit unit)
Construct a new Relative Mutable DoubleVector of the right type.
|
protected Dimensionless |
instantiateScalar(double value,
DimensionlessUnit unit)
Construct a new Relative Immutable DoubleScalar of the right type.
|
protected DimensionlessVector |
instantiateType(DoubleVectorData dvd,
DimensionlessUnit unit)
Construct a new Relative Immutable DoubleVector of the right type.
|
MutableDimensionlessVector |
inv()
Set the value(s) to the complement (1.0/x) of the value(s).
|
MutableDimensionlessVector |
log()
Set the value(s) to the natural logarithm (base e) of the value(s).
|
MutableDimensionlessVector |
log10()
Set the value(s) to the base 10 logarithm of the value(s).
|
MutableDimensionlessVector |
log1p()
Set the value(s) to the natural logarithm of the sum of the value(s) and 1.
|
MutableDimensionlessVector |
pow(double x)
Set the value(s) to the value(s) raised to the power of the argument.
|
MutableDimensionlessVector |
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.
|
MutableDimensionlessVector |
sin()
Set the value(s) to the trigonometric sine of the value(s).
|
MutableDimensionlessVector |
sinh()
Set the value(s) to the hyperbolic sine of the value(s).
|
MutableDimensionlessVector |
sqrt()
Set the value(s) to the correctly rounded positive square root of the value(s).
|
MutableDimensionlessVector |
tan()
Set the value(s) to the trigonometric tangent of the value(s).
|
MutableDimensionlessVector |
tanh()
Set the value(s) to the hyperbolic tangent of the value(s).
|
Dimensionless[] |
toArray()
Return an array of Dimensionless Scalars from this vector.
|
MutableDimensionlessVector |
toDense()
return a dense version of this vector.
|
MutableDimensionlessVector |
toSparse()
return a sparse version of this vector.
|
abs, assign, ceil, checkCopyOnWrite, copy, decrementBy, decrementBy, decrementBy, divideBy, divideBy, divideBy, floor, immutable, incrementBy, incrementBy, incrementBy, multiplyBy, multiplyBy, multiplyBy, mutable, neg, normalize, rint, round, set, setCopyOnWrite, setInUnit, setSIcheckUnit, checkUnit, checkUnit, divide, get, iterator, minus, plus, timescardinality, checkIndex, checkSize, checkSize, equals, getData, getInUnit, getInUnit, getSI, getStorageType, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, size, toString, toString, toString, toString, zSumexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative, setDisplayUnitclone, finalize, getClass, notify, notifyAll, wait, wait, waitnegDIV, MULT, POWcardinality, get, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, size, toString, toString, toString, toString, zSumforEach, spliteratorpublic MutableDimensionlessVector(double[] values,
DimensionlessUnit unit,
StorageType storageType)
throws ValueException
values - double[]; the values of the entries in the new Relative Immutable Double DimensionlessVectorunit - DimensionlessUnit; the unit of the new Relative Immutable Double DimensionlessVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic MutableDimensionlessVector(List<Double> values, DimensionlessUnit unit, StorageType storageType) throws ValueException
values - List<Double>; the values of the entries in the new Relative Immutable Double DimensionlessVectorunit - DimensionlessUnit; the unit of the new Relative Immutable Double DimensionlessVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic MutableDimensionlessVector(Dimensionless[] values, StorageType storageType) throws ValueException
values - Dimensionless[]; the values of the entries in the new Relative Immutable Double DimensionlessVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic MutableDimensionlessVector(List<Dimensionless> values, StorageType storageType) throws ValueException
values - List<Dimensionless>; the values of the entries in the new Relative Immutable Double
DimensionlessVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic MutableDimensionlessVector(SortedMap<Integer,Dimensionless> values, int length, StorageType storageType) throws ValueException
values - SortedMap<Integer, Dimensionless>; the values of the entries in the new Relative Sparse Mutable
Double DimensionlessVectorlength - int; the size of the vectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic MutableDimensionlessVector(SortedMap<Integer,Double> values, DimensionlessUnit unit, int length, StorageType storageType) throws ValueException
values - SortedMap<Integer, Double>; the map of indexes to values of the Relative Sparse Mutable Double
DimensionlessVectorunit - DimensionlessUnit; the unit of the new Relative Sparse Mutable Double DimensionlessVectorlength - int; the size of the vectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullMutableDimensionlessVector(DoubleVectorData data, DimensionlessUnit unit)
data - DoubleVectorData; an internal data objectunit - DimensionlessUnit; the unitprotected final DimensionlessVector instantiateType(DoubleVectorData dvd, DimensionlessUnit unit)
instantiateType in class AbstractDoubleVectorRel<DimensionlessUnit,DimensionlessVector,MutableDimensionlessVector,Dimensionless>dvd - DoubleVectorData; an internal data objectunit - U; the unitprotected final MutableDimensionlessVector instantiateMutableType(DoubleVectorData dvd, DimensionlessUnit unit)
instantiateMutableType in class AbstractDoubleVectorRel<DimensionlessUnit,DimensionlessVector,MutableDimensionlessVector,Dimensionless>dvd - DoubleVectorData; an internal data objectunit - U; the unitprotected final Dimensionless instantiateScalar(double value, DimensionlessUnit unit)
instantiateScalar in class AbstractDoubleVectorRel<DimensionlessUnit,DimensionlessVector,MutableDimensionlessVector,Dimensionless>value - double; the valueunit - U; the unitpublic final MutableDimensionlessVector toDense()
toDense in interface DoubleVectorInterface<DimensionlessUnit>public final MutableDimensionlessVector toSparse()
toSparse in interface DoubleVectorInterface<DimensionlessUnit>public Dimensionless[] toArray()
RuntimeException - wrapping a ValueException on error getting one of the valuespublic final MutableDimensionlessVector acos()
acos in interface MathFunctionsDimensionless<MutableDimensionlessVector>public final MutableDimensionlessVector asin()
asin in interface MathFunctionsDimensionless<MutableDimensionlessVector>public final MutableDimensionlessVector atan()
atan in interface MathFunctionsDimensionless<MutableDimensionlessVector>public final MutableDimensionlessVector cbrt()
cbrt in interface MathFunctionsDimensionless<MutableDimensionlessVector>public final MutableDimensionlessVector cos()
cos in interface MathFunctionsDimensionless<MutableDimensionlessVector>public final MutableDimensionlessVector cosh()
cosh in interface MathFunctionsDimensionless<MutableDimensionlessVector>public final MutableDimensionlessVector exp()
exp in interface MathFunctionsDimensionless<MutableDimensionlessVector>public final MutableDimensionlessVector expm1()
expm1 in interface MathFunctionsDimensionless<MutableDimensionlessVector>public final MutableDimensionlessVector log()
log in interface MathFunctionsDimensionless<MutableDimensionlessVector>public final MutableDimensionlessVector log10()
log10 in interface MathFunctionsDimensionless<MutableDimensionlessVector>public final MutableDimensionlessVector log1p()
log1p in interface MathFunctionsDimensionless<MutableDimensionlessVector>public final MutableDimensionlessVector pow(double x)
pow in interface MathFunctionsDimensionless<MutableDimensionlessVector>x - double; the value to use as the powerpublic final MutableDimensionlessVector signum()
signum in interface MathFunctionsDimensionless<MutableDimensionlessVector>public final MutableDimensionlessVector sin()
sin in interface MathFunctionsDimensionless<MutableDimensionlessVector>public final MutableDimensionlessVector sinh()
sinh in interface MathFunctionsDimensionless<MutableDimensionlessVector>public final MutableDimensionlessVector sqrt()
sqrt in interface MathFunctionsDimensionless<MutableDimensionlessVector>public final MutableDimensionlessVector tan()
tan in interface MathFunctionsDimensionless<MutableDimensionlessVector>public final MutableDimensionlessVector tanh()
tanh in interface MathFunctionsDimensionless<MutableDimensionlessVector>public final MutableDimensionlessVector inv()
inv in interface MathFunctionsDimensionless<MutableDimensionlessVector>Copyright © 2015–2019 Delft University of Technology. All rights reserved.