public class MutableDimensionlessVector extends AbstractMutableDoubleVectorRel<DimensionlessUnit,DimensionlessVector,MutableDimensionlessVector,Dimensionless> implements MathFunctionsDimensionless<MutableDimensionlessVector>
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
AbstractDoubleVectorRel.Itr
data
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, setSI
checkUnit, checkUnit, checkUnit, divide, get, iterator, minus, plus, times
cardinality, checkIndex, checkSize, checkSize, equals, getData, getInUnit, getInUnit, getSI, getStorageType, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, size, toString, toString, toString, toString, zSum
expressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative, setDisplayUnit
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
neg
DIV, MULT, POW
cardinality, get, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, size, toString, toString, toString, toString, zSum
forEach, spliterator
public MutableDimensionlessVector(double[] values, DimensionlessUnit unit, StorageType storageType) throws ValueException
values
- double[]; the values of the entries in the new Relative Immutable Double DimensionlessVectorunit
- U; the unit of the new Relative Immutable Double DimensionlessVectorstorageType
- 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; the values of the entries in the new Relative Immutable Double DimensionlessVectorunit
- U; the unit of the new Relative Immutable Double DimensionlessVectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic MutableDimensionlessVector(Dimensionless[] values, StorageType storageType) throws ValueException
values
- DoubleScalar.Rel<U>[]; the values of the entries in the new Relative Immutable Double
DimensionlessVectorstorageType
- 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; the values of the entries in the new Relative Immutable Double DimensionlessVectorstorageType
- 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
- DoubleScalar.Rel<U>[]; the values of the entries in the new Relative Sparse Mutable Double
DimensionlessVectorlength
- the size of the vectorstorageType
- 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
- Map; the map of indexes to values of the Relative Sparse Mutable Double DimensionlessVectorunit
- U; the unit of the new Relative Sparse Mutable Double DimensionlessVectorlength
- the size of the vectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullMutableDimensionlessVector(DoubleVectorData data, DimensionlessUnit unit)
data
- an internal data objectunit
- the unitprotected final DimensionlessVector instantiateType(DoubleVectorData dvd, DimensionlessUnit unit)
instantiateType
in class AbstractDoubleVectorRel<DimensionlessUnit,DimensionlessVector,MutableDimensionlessVector,Dimensionless>
dvd
- an internal data objectunit
- the unitprotected final MutableDimensionlessVector instantiateMutableType(DoubleVectorData dvd, DimensionlessUnit unit)
instantiateMutableType
in class AbstractDoubleVectorRel<DimensionlessUnit,DimensionlessVector,MutableDimensionlessVector,Dimensionless>
dvd
- an internal data objectunit
- the unitprotected final Dimensionless instantiateScalar(double value, DimensionlessUnit unit)
instantiateScalar
in class AbstractDoubleVectorRel<DimensionlessUnit,DimensionlessVector,MutableDimensionlessVector,Dimensionless>
value
- the valueunit
- 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–2018 Delft University of Technology. All rights reserved.