public class MutableFloatAccelerationVector extends AbstractMutableFloatVectorRel<AccelerationUnit,FloatAccelerationVector,MutableFloatAccelerationVector,FloatAcceleration>
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 |
|---|
MutableFloatAccelerationVector(float[] values,
AccelerationUnit unit,
StorageType storageType)
Construct a new Relative Immutable Float AccelerationVector.
|
MutableFloatAccelerationVector(FloatAcceleration[] values,
StorageType storageType)
Construct a new Relative Immutable Float AccelerationVector.
|
MutableFloatAccelerationVector(FloatVectorData data,
AccelerationUnit unit) |
MutableFloatAccelerationVector(List<Float> values,
AccelerationUnit unit,
StorageType storageType)
Construct a new Relative Immutable Float AccelerationVector.
|
MutableFloatAccelerationVector(List<FloatAcceleration> values,
StorageType storageType)
Construct a new Relative Immutable Float AccelerationVector.
|
MutableFloatAccelerationVector(SortedMap<Integer,Float> values,
AccelerationUnit unit,
int length,
StorageType storageType)
Construct a new Relative Immutable Float AccelerationVector.
|
MutableFloatAccelerationVector(SortedMap<Integer,FloatAcceleration> values,
int length,
StorageType storageType)
Construct a new Relative Immutable Float AccelerationVector.
|
| Modifier and Type | Method and Description |
|---|---|
protected MutableFloatAccelerationVector |
instantiateMutableType(FloatVectorData dvd,
AccelerationUnit unit)
Construct a new Relative Mutable FloatVector of the right type.
|
protected FloatAcceleration |
instantiateScalar(float value,
AccelerationUnit unit)
Construct a new Relative Immutable FloatScalar of the right type.
|
protected FloatAccelerationVector |
instantiateType(FloatVectorData dvd,
AccelerationUnit unit)
Construct a new Relative Immutable FloatVector of the right type.
|
FloatAcceleration[] |
toArray()
Return an array of FloatAcceleration Scalars from this vector.
|
MutableFloatAccelerationVector |
toDense()
return a dense version of this vector.
|
MutableFloatAccelerationVector |
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, waitDIV, MULT, POWcardinality, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, size, toString, toString, toString, toString, zSumforEach, spliteratorpublic MutableFloatAccelerationVector(float[] values,
AccelerationUnit unit,
StorageType storageType)
throws ValueException
values - float[]; the values of the entries in the new Relative Immutable Float AccelerationVectorunit - AccelerationUnit; the unit of the new Relative Immutable Float AccelerationVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic MutableFloatAccelerationVector(List<Float> values, AccelerationUnit unit, StorageType storageType) throws ValueException
values - List<Float>; the values of the entries in the new Relative Immutable Float AccelerationVectorunit - AccelerationUnit; the unit of the new Relative Immutable Float AccelerationVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic MutableFloatAccelerationVector(FloatAcceleration[] values, StorageType storageType) throws ValueException
values - FloatAcceleration[]; the values of the entries in the new Relative Immutable Float AccelerationVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic MutableFloatAccelerationVector(List<FloatAcceleration> values, StorageType storageType) throws ValueException
values - List<FloatAcceleration>; the values of the entries in the new Relative Immutable Float
AccelerationVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic MutableFloatAccelerationVector(SortedMap<Integer,FloatAcceleration> values, int length, StorageType storageType) throws ValueException
values - SortedMap<Integer, FloatAcceleration>; the values of the entries in the new Relative Sparse Mutable
Float AccelerationVectorlength - int; the size of the vectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic MutableFloatAccelerationVector(SortedMap<Integer,Float> values, AccelerationUnit unit, int length, StorageType storageType) throws ValueException
values - SortedMap<Integer, Float>; the map of indexes to values of the Relative Sparse Mutable Float
AccelerationVectorunit - AccelerationUnit; the unit of the new Relative Sparse Mutable Float AccelerationVectorlength - int; the size of the vectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullMutableFloatAccelerationVector(FloatVectorData data, AccelerationUnit unit)
data - FloatVectorData; an internal data objectunit - AccelerationUnit; the unitprotected final FloatAccelerationVector instantiateType(FloatVectorData dvd, AccelerationUnit unit)
instantiateType in class AbstractFloatVectorRel<AccelerationUnit,FloatAccelerationVector,MutableFloatAccelerationVector,FloatAcceleration>dvd - FloatVectorData; an internal data objectunit - U; the unitprotected final MutableFloatAccelerationVector instantiateMutableType(FloatVectorData dvd, AccelerationUnit unit)
instantiateMutableType in class AbstractFloatVectorRel<AccelerationUnit,FloatAccelerationVector,MutableFloatAccelerationVector,FloatAcceleration>dvd - FloatVectorData; an internal data objectunit - U; the unitprotected final FloatAcceleration instantiateScalar(float value, AccelerationUnit unit)
instantiateScalar in class AbstractFloatVectorRel<AccelerationUnit,FloatAccelerationVector,MutableFloatAccelerationVector,FloatAcceleration>value - float; the valueunit - U; the unitpublic final MutableFloatAccelerationVector toDense()
public final MutableFloatAccelerationVector toSparse()
public FloatAcceleration[] toArray()
RuntimeException - wrapping a ValueException on error getting one of the valuesCopyright © 2015–2019 Delft University of Technology. All rights reserved.