public class MutableFloatTemperatureVector extends AbstractMutableFloatVectorRel<TemperatureUnit,FloatTemperatureVector,MutableFloatTemperatureVector,FloatTemperature>
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2015-09-29 14:14:28 +0200 (Tue, 29 Sep 2015) $, @version $Revision: 73 $, by $Author: pknoppers $, initial
version Sep 5, 2015
AbstractFloatVectorRel.Itr
data
Constructor and Description |
---|
MutableFloatTemperatureVector(float[] values,
TemperatureUnit unit,
StorageType storageType)
Construct a new Relative Mutable FloatTemperatureVector.
|
MutableFloatTemperatureVector(FloatTemperature[] values,
StorageType storageType)
Construct a new Relative Mutable FloatTemperatureVector.
|
MutableFloatTemperatureVector(FloatVectorData data,
TemperatureUnit unit)
Construct a new Relative Mutable FloatTemperatureVector.
|
MutableFloatTemperatureVector(List<Float> values,
TemperatureUnit unit,
StorageType storageType)
Construct a new Relative Mutable FloatTemperatureVector.
|
MutableFloatTemperatureVector(List<FloatTemperature> values,
StorageType storageType)
Construct a new Relative Mutable FloatTemperatureVector.
|
MutableFloatTemperatureVector(SortedMap<Integer,Float> values,
TemperatureUnit unit,
int length,
StorageType storageType)
Construct a new Relative Mutable FloatTemperatureVector.
|
MutableFloatTemperatureVector(SortedMap<Integer,FloatTemperature> values,
int length,
StorageType storageType)
Construct a new Relative Mutable FloatTemperatureVector.
|
Modifier and Type | Method and Description |
---|---|
protected MutableFloatTemperatureVector |
instantiateMutableType(FloatVectorData dvd,
TemperatureUnit unit)
Construct a new Relative Mutable FloatVector of the right type.
|
protected FloatTemperature |
instantiateScalar(float value,
TemperatureUnit unit)
Construct a new Relative Immutable FloatScalar of the right type.
|
protected FloatTemperatureVector |
instantiateType(FloatVectorData dvd,
TemperatureUnit unit)
Construct a new Relative Immutable FloatVector of the right type.
|
FloatTemperature[] |
toArray()
Return an array of FloatTemperature Scalars from this vector.
|
MutableFloatTemperatureVector |
toDense()
return a dense version of this vector.
|
MutableFloatTemperatureVector |
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
DIV, MULT, POW
cardinality, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, size, toString, toString, toString, toString, zSum
forEach, spliterator
public MutableFloatTemperatureVector(float[] values, TemperatureUnit unit, StorageType storageType) throws ValueException
values
- float[]; the values of the entries in the new Relative Mutable FloatTemperatureVectorunit
- U; the unit of the new Relative Mutable FloatTemperatureVectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic MutableFloatTemperatureVector(List<Float> values, TemperatureUnit unit, StorageType storageType) throws ValueException
values
- List; the values of the entries in the new Relative Mutable FloatTemperatureVectorunit
- U; the unit of the new Relative Mutable FloatTemperatureVectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic MutableFloatTemperatureVector(FloatTemperature[] values, StorageType storageType) throws ValueException
values
- FloatScalar.Rel<U>[]; the values of the entries in the new Relative Mutable FloatTemperatureVectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriespublic MutableFloatTemperatureVector(List<FloatTemperature> values, StorageType storageType) throws ValueException
values
- List; the values of the entries in the new Relative Mutable FloatTemperatureVectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriespublic MutableFloatTemperatureVector(SortedMap<Integer,FloatTemperature> values, int length, StorageType storageType) throws ValueException
values
- FloatScalar.Rel<U>[]; the values of the entries in the new Relative Sparse Mutable
FloatTemperatureVectorlength
- the size of the vectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriespublic MutableFloatTemperatureVector(SortedMap<Integer,Float> values, TemperatureUnit unit, int length, StorageType storageType) throws ValueException
values
- Map; the map of indexes to values of the Relative Sparse Mutable FloatTemperatureVectorunit
- U; the unit of the new Relative Sparse Mutable FloatTemperatureVectorlength
- the size of the vectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullMutableFloatTemperatureVector(FloatVectorData data, TemperatureUnit unit)
data
- an internal data objectunit
- the unitprotected final FloatTemperatureVector instantiateType(FloatVectorData dvd, TemperatureUnit unit)
instantiateType
in class AbstractFloatVectorRel<TemperatureUnit,FloatTemperatureVector,MutableFloatTemperatureVector,FloatTemperature>
dvd
- an internal data objectunit
- the unitprotected final MutableFloatTemperatureVector instantiateMutableType(FloatVectorData dvd, TemperatureUnit unit)
instantiateMutableType
in class AbstractFloatVectorRel<TemperatureUnit,FloatTemperatureVector,MutableFloatTemperatureVector,FloatTemperature>
dvd
- an internal data objectunit
- the unitprotected final FloatTemperature instantiateScalar(float value, TemperatureUnit unit)
instantiateScalar
in class AbstractFloatVectorRel<TemperatureUnit,FloatTemperatureVector,MutableFloatTemperatureVector,FloatTemperature>
value
- the valueunit
- the unitpublic final MutableFloatTemperatureVector toDense()
public final MutableFloatTemperatureVector toSparse()
public FloatTemperature[] toArray()
RuntimeException
- wrapping a ValueException on error getting one of the valuesCopyright © 2015–2018 Delft University of Technology. All rights reserved.