public class MutableFloatDimensionlessVector extends AbstractMutableFloatVectorRel<DimensionlessUnit,FloatDimensionlessVector,MutableFloatDimensionlessVector,FloatDimensionless> implements MathFunctionsDimensionless<MutableFloatDimensionlessVector>
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.
AbstractFloatVectorRel.Itrdata| Constructor and Description |
|---|
MutableFloatDimensionlessVector(float[] values,
DimensionlessUnit unit,
StorageType storageType)
Construct a new Relative Immutable Float DimensionlessVector.
|
MutableFloatDimensionlessVector(FloatDimensionless[] values,
StorageType storageType)
Construct a new Relative Immutable Float DimensionlessVector.
|
MutableFloatDimensionlessVector(FloatVectorData data,
DimensionlessUnit unit) |
MutableFloatDimensionlessVector(List<Float> values,
DimensionlessUnit unit,
StorageType storageType)
Construct a new Relative Immutable Float DimensionlessVector.
|
MutableFloatDimensionlessVector(List<FloatDimensionless> values,
StorageType storageType)
Construct a new Relative Immutable Float DimensionlessVector.
|
MutableFloatDimensionlessVector(SortedMap<Integer,Float> values,
DimensionlessUnit unit,
int length,
StorageType storageType)
Construct a new Relative Immutable Float DimensionlessVector.
|
MutableFloatDimensionlessVector(SortedMap<Integer,FloatDimensionless> values,
int length,
StorageType storageType)
Construct a new Relative Immutable Float DimensionlessVector.
|
| Modifier and Type | Method and Description |
|---|---|
MutableFloatDimensionlessVector |
acos()
Set the value(s) to the arc cosine of the value(s); the resulting angle is in the range 0.0 through pi.
|
MutableFloatDimensionlessVector |
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.
|
MutableFloatDimensionlessVector |
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.
|
MutableFloatDimensionlessVector |
cbrt()
Set the value(s) to the(ir) cube root.
|
MutableFloatDimensionlessVector |
cos()
Set the value(s) to the trigonometric cosine of the value(s).
|
MutableFloatDimensionlessVector |
cosh()
Set the value(s) to the hyperbolic cosine of the value(s).
|
MutableFloatDimensionlessVector |
exp()
Set the value(s) to Euler's number e raised to the power of the value(s).
|
MutableFloatDimensionlessVector |
expm1()
Set the value(s) to Euler's number e raised to the power of the value(s) minus 1 (e^x - 1).
|
protected MutableFloatDimensionlessVector |
instantiateMutableType(FloatVectorData dvd,
DimensionlessUnit unit)
Construct a new Relative Mutable FloatVector of the right type.
|
protected FloatDimensionless |
instantiateScalar(float value,
DimensionlessUnit unit)
Construct a new Relative Immutable FloatScalar of the right type.
|
protected FloatDimensionlessVector |
instantiateType(FloatVectorData dvd,
DimensionlessUnit unit)
Construct a new Relative Immutable FloatVector of the right type.
|
MutableFloatDimensionlessVector |
inv()
Set the value(s) to the complement (1.0/x) of the value(s).
|
MutableFloatDimensionlessVector |
log()
Set the value(s) to the natural logarithm (base e) of the value(s).
|
MutableFloatDimensionlessVector |
log10()
Set the value(s) to the base 10 logarithm of the value(s).
|
MutableFloatDimensionlessVector |
log1p()
Set the value(s) to the natural logarithm of the sum of the value(s) and 1.
|
MutableFloatDimensionlessVector |
pow(double x)
Set the value(s) to the value(s) raised to the power of the argument.
|
MutableFloatDimensionlessVector |
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.
|
MutableFloatDimensionlessVector |
sin()
Set the value(s) to the trigonometric sine of the value(s).
|
MutableFloatDimensionlessVector |
sinh()
Set the value(s) to the hyperbolic sine of the value(s).
|
MutableFloatDimensionlessVector |
sqrt()
Set the value(s) to the correctly rounded positive square root of the value(s).
|
MutableFloatDimensionlessVector |
tan()
Set the value(s) to the trigonometric tangent of the value(s).
|
MutableFloatDimensionlessVector |
tanh()
Set the value(s) to the hyperbolic tangent of the value(s).
|
FloatDimensionless[] |
toArray()
Return an array of FloatDimensionless Scalars from this vector.
|
MutableFloatDimensionlessVector |
toDense()
return a dense version of this vector.
|
MutableFloatDimensionlessVector |
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, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, size, toString, toString, toString, toString, zSumforEach, spliteratorpublic MutableFloatDimensionlessVector(float[] values,
DimensionlessUnit unit,
StorageType storageType)
throws ValueException
values - float[]; the values of the entries in the new Relative Immutable Float DimensionlessVectorunit - DimensionlessUnit; the unit of the new Relative Immutable Float DimensionlessVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic MutableFloatDimensionlessVector(List<Float> values, DimensionlessUnit unit, StorageType storageType) throws ValueException
values - List<Float>; the values of the entries in the new Relative Immutable Float DimensionlessVectorunit - DimensionlessUnit; the unit of the new Relative Immutable Float DimensionlessVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic MutableFloatDimensionlessVector(FloatDimensionless[] values, StorageType storageType) throws ValueException
values - FloatDimensionless[]; the values of the entries in the new Relative Immutable Float DimensionlessVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic MutableFloatDimensionlessVector(List<FloatDimensionless> values, StorageType storageType) throws ValueException
values - List<FloatDimensionless>; the values of the entries in the new Relative Immutable Float
DimensionlessVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic MutableFloatDimensionlessVector(SortedMap<Integer,FloatDimensionless> values, int length, StorageType storageType) throws ValueException
values - SortedMap<Integer, FloatDimensionless>; the values of the entries in the new Relative Sparse Mutable
Float DimensionlessVectorlength - int; the size of the vectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic MutableFloatDimensionlessVector(SortedMap<Integer,Float> values, DimensionlessUnit unit, int length, StorageType storageType) throws ValueException
values - SortedMap<Integer, Float>; the map of indexes to values of the Relative Sparse Mutable Float
DimensionlessVectorunit - DimensionlessUnit; the unit of the new Relative Sparse Mutable Float DimensionlessVectorlength - int; the size of the vectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullMutableFloatDimensionlessVector(FloatVectorData data, DimensionlessUnit unit)
data - FloatVectorData; an internal data objectunit - DimensionlessUnit; the unitprotected final FloatDimensionlessVector instantiateType(FloatVectorData dvd, DimensionlessUnit unit)
instantiateType in class AbstractFloatVectorRel<DimensionlessUnit,FloatDimensionlessVector,MutableFloatDimensionlessVector,FloatDimensionless>dvd - FloatVectorData; an internal data objectunit - U; the unitprotected final MutableFloatDimensionlessVector instantiateMutableType(FloatVectorData dvd, DimensionlessUnit unit)
instantiateMutableType in class AbstractFloatVectorRel<DimensionlessUnit,FloatDimensionlessVector,MutableFloatDimensionlessVector,FloatDimensionless>dvd - FloatVectorData; an internal data objectunit - U; the unitprotected final FloatDimensionless instantiateScalar(float value, DimensionlessUnit unit)
instantiateScalar in class AbstractFloatVectorRel<DimensionlessUnit,FloatDimensionlessVector,MutableFloatDimensionlessVector,FloatDimensionless>value - float; the valueunit - U; the unitpublic final MutableFloatDimensionlessVector toDense()
toDense in interface FloatVectorInterface<DimensionlessUnit>public final MutableFloatDimensionlessVector toSparse()
toSparse in interface FloatVectorInterface<DimensionlessUnit>public FloatDimensionless[] toArray()
RuntimeException - wrapping a ValueException on error getting one of the valuespublic final MutableFloatDimensionlessVector acos()
acos in interface MathFunctionsDimensionless<MutableFloatDimensionlessVector>public final MutableFloatDimensionlessVector asin()
asin in interface MathFunctionsDimensionless<MutableFloatDimensionlessVector>public final MutableFloatDimensionlessVector atan()
atan in interface MathFunctionsDimensionless<MutableFloatDimensionlessVector>public final MutableFloatDimensionlessVector cbrt()
cbrt in interface MathFunctionsDimensionless<MutableFloatDimensionlessVector>public final MutableFloatDimensionlessVector cos()
cos in interface MathFunctionsDimensionless<MutableFloatDimensionlessVector>public final MutableFloatDimensionlessVector cosh()
cosh in interface MathFunctionsDimensionless<MutableFloatDimensionlessVector>public final MutableFloatDimensionlessVector exp()
exp in interface MathFunctionsDimensionless<MutableFloatDimensionlessVector>public final MutableFloatDimensionlessVector expm1()
expm1 in interface MathFunctionsDimensionless<MutableFloatDimensionlessVector>public final MutableFloatDimensionlessVector log()
log in interface MathFunctionsDimensionless<MutableFloatDimensionlessVector>public final MutableFloatDimensionlessVector log10()
log10 in interface MathFunctionsDimensionless<MutableFloatDimensionlessVector>public final MutableFloatDimensionlessVector log1p()
log1p in interface MathFunctionsDimensionless<MutableFloatDimensionlessVector>public final MutableFloatDimensionlessVector pow(double x)
pow in interface MathFunctionsDimensionless<MutableFloatDimensionlessVector>x - double; the value to use as the powerpublic final MutableFloatDimensionlessVector signum()
signum in interface MathFunctionsDimensionless<MutableFloatDimensionlessVector>public final MutableFloatDimensionlessVector sin()
sin in interface MathFunctionsDimensionless<MutableFloatDimensionlessVector>public final MutableFloatDimensionlessVector sinh()
sinh in interface MathFunctionsDimensionless<MutableFloatDimensionlessVector>public final MutableFloatDimensionlessVector sqrt()
sqrt in interface MathFunctionsDimensionless<MutableFloatDimensionlessVector>public final MutableFloatDimensionlessVector tan()
tan in interface MathFunctionsDimensionless<MutableFloatDimensionlessVector>public final MutableFloatDimensionlessVector tanh()
tanh in interface MathFunctionsDimensionless<MutableFloatDimensionlessVector>public final MutableFloatDimensionlessVector inv()
inv in interface MathFunctionsDimensionless<MutableFloatDimensionlessVector>Copyright © 2015–2019 Delft University of Technology. All rights reserved.