public class MutableFloatTemperatureVector extends AbstractMutableFloatVectorRel<TemperatureUnit,FloatTemperatureVector,MutableFloatTemperatureVector,FloatTemperature>
Copyright (c) 2013-2019 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
- TemperatureUnit; the unit of the new Relative Mutable FloatTemperatureVectorstorageType
- StorageType; 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<Float>; the values of the entries in the new Relative Mutable FloatTemperatureVectorunit
- TemperatureUnit; the unit of the new Relative Mutable FloatTemperatureVectorstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic MutableFloatTemperatureVector(FloatTemperature[] values, StorageType storageType) throws ValueException
values
- FloatTemperature[]; the values of the entries in the new Relative Mutable FloatTemperatureVectorstorageType
- StorageType; 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<FloatTemperature>; the values of the entries in the new Relative Mutable FloatTemperatureVectorstorageType
- StorageType; 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
- SortedMap<Integer, FloatTemperature>; the values of the entries in the new Relative Sparse Mutable
FloatTemperatureVectorlength
- int; the size of the vectorstorageType
- StorageType; 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
- SortedMap<Integer, Float>; the map of indexes to values of the Relative Sparse Mutable
FloatTemperatureVectorunit
- TemperatureUnit; the unit of the new Relative Sparse Mutable FloatTemperatureVectorlength
- int; the size of the vectorstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullMutableFloatTemperatureVector(FloatVectorData data, TemperatureUnit unit)
data
- FloatVectorData; an internal data objectunit
- TemperatureUnit; the unitprotected final FloatTemperatureVector instantiateType(FloatVectorData dvd, TemperatureUnit unit)
instantiateType
in class AbstractFloatVectorRel<TemperatureUnit,FloatTemperatureVector,MutableFloatTemperatureVector,FloatTemperature>
dvd
- FloatVectorData; an internal data objectunit
- U; the unitprotected final MutableFloatTemperatureVector instantiateMutableType(FloatVectorData dvd, TemperatureUnit unit)
instantiateMutableType
in class AbstractFloatVectorRel<TemperatureUnit,FloatTemperatureVector,MutableFloatTemperatureVector,FloatTemperature>
dvd
- FloatVectorData; an internal data objectunit
- U; the unitprotected final FloatTemperature instantiateScalar(float value, TemperatureUnit unit)
instantiateScalar
in class AbstractFloatVectorRel<TemperatureUnit,FloatTemperatureVector,MutableFloatTemperatureVector,FloatTemperature>
value
- float; the valueunit
- U; the unitpublic final MutableFloatTemperatureVector toDense()
public final MutableFloatTemperatureVector toSparse()
public FloatTemperature[] toArray()
RuntimeException
- wrapping a ValueException on error getting one of the valuesCopyright © 2015–2019 Delft University of Technology. All rights reserved.