public class FloatTemperatureVector extends AbstractFloatVectorRel<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.Itrdata| Constructor and Description |
|---|
FloatTemperatureVector(float[] values,
TemperatureUnit unit,
StorageType storageType)
Construct a new Relative Immutable FloatTemperatureVector.
|
FloatTemperatureVector(FloatTemperature[] values,
StorageType storageType)
Construct a new Relative Immutable FloatTemperatureVector.
|
FloatTemperatureVector(FloatVectorData data,
TemperatureUnit unit)
Construct a new Relative Immutable FloatTemperatureVector.
|
FloatTemperatureVector(List<Float> values,
TemperatureUnit unit,
StorageType storageType)
Construct a new Relative Immutable FloatTemperatureVector.
|
FloatTemperatureVector(List<FloatTemperature> values,
StorageType storageType)
Construct a new Relative Immutable FloatTemperatureVector.
|
FloatTemperatureVector(SortedMap<Integer,Float> values,
TemperatureUnit unit,
int length,
StorageType storageType)
Construct a new Relative Immutable FloatTemperatureVector.
|
FloatTemperatureVector(SortedMap<Integer,FloatTemperature> values,
int length,
StorageType storageType)
Construct a new Relative Immutable 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.
|
FloatTemperatureVector |
toDense()
return a dense version of this vector.
|
FloatTemperatureVector |
toSparse()
return a sparse version of this vector.
|
checkUnit, checkUnit, checkUnit, divide, get, iterator, minus, mutable, 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, waitforEach, spliteratorpublic FloatTemperatureVector(float[] values,
TemperatureUnit unit,
StorageType storageType)
throws ValueException
values - float[]; the values of the entries in the new Relative Immutable FloatTemperatureVectorunit - TemperatureUnit; the unit of the new Relative Immutable FloatTemperatureVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic FloatTemperatureVector(List<Float> values, TemperatureUnit unit, StorageType storageType) throws ValueException
values - List<Float>; the values of the entries in the new Relative Immutable FloatTemperatureVectorunit - TemperatureUnit; the unit of the new Relative Immutable FloatTemperatureVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic FloatTemperatureVector(FloatTemperature[] values, StorageType storageType) throws ValueException
values - FloatTemperature[]; the values of the entries in the new Relative Immutable FloatTemperatureVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic FloatTemperatureVector(List<FloatTemperature> values, StorageType storageType) throws ValueException
values - List<FloatTemperature>; the values of the entries in the new Relative Immutable
FloatTemperatureVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic FloatTemperatureVector(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 FloatTemperatureVector(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 nullFloatTemperatureVector(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 FloatTemperatureVector toDense()
public final FloatTemperatureVector toSparse()
public FloatTemperature[] toArray()
RuntimeException - wrapping a ValueException on error getting one of the valuesCopyright © 2015–2019 Delft University of Technology. All rights reserved.