public class AbsoluteTemperatureVector extends TypedDoubleVectorAbs<TemperatureUnit,AbsoluteTemperatureVector,TemperatureVector,MutableAbsoluteTemperatureVector,AbsoluteTemperature>
Copyright (c) 2013-2016 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
DoubleVector.Abs<U extends Unit<U>>, DoubleVector.Rel<U extends Unit<U>>data| Constructor and Description |
|---|
AbsoluteTemperatureVector(AbsoluteTemperature[] values,
StorageType storageType)
Construct a new Absolute Immutable Double AbsoluteTemperatureVector.
|
AbsoluteTemperatureVector(double[] values,
TemperatureUnit unit,
StorageType storageType)
Construct a new Absolute Immutable Double AbsoluteTemperatureVector.
|
AbsoluteTemperatureVector(DoubleVectorData data,
TemperatureUnit unit)
Construct a new Absolute Immutable Double AbsoluteTemperatureVector.
|
AbsoluteTemperatureVector(List<AbsoluteTemperature> values,
StorageType storageType)
Construct a new Absolute Immutable Double AbsoluteTemperatureVector.
|
AbsoluteTemperatureVector(List<Double> values,
TemperatureUnit unit,
StorageType storageType)
Construct a new Absolute Immutable Double AbsoluteTemperatureVector.
|
AbsoluteTemperatureVector(SortedMap<Integer,AbsoluteTemperature> values,
int length,
StorageType storageType)
Construct a new Absolute Immutable Double AbsoluteTemperatureVector.
|
AbsoluteTemperatureVector(SortedMap<Integer,Double> values,
TemperatureUnit unit,
int length,
StorageType storageType)
Construct a new Absolute Immutable Double AbsoluteTemperatureVector.
|
| Modifier and Type | Method and Description |
|---|---|
AbsoluteTemperature |
get(int index)
Retrieve the value stored at a specified index as a DoubleScalar.
|
protected MutableAbsoluteTemperatureVector |
instantiateMutableType(DoubleVectorData dvd,
TemperatureUnit unit)
Construct a new Absolute Mutable DoubleVector of the right type.
|
protected AbsoluteTemperatureVector |
instantiateTypeAbs(DoubleVectorData dvd,
TemperatureUnit unit)
Construct a new Absolute Immutable DoubleVector of the right type.
|
protected TemperatureVector |
instantiateTypeRel(DoubleVectorData dvd,
TemperatureUnit unit)
Construct a new Relative Immutable DoubleVector of the right type.
|
TemperatureVector |
toRel()
Translate the absolute vector into a relative vector (e.g., before or after a multiplication or division).
|
minus, minus, mutable, plus, toDense, toSparseminus, minus, pluscardinality, checkIndex, checkSize, checkSize, checkUnit, checkUnit, checkUnit, equals, getData, getInUnit, getInUnit, getSI, getStorageType, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, instantiateAbs, instantiateRel, size, toString, toString, toString, toString, zSumexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelativepublic AbsoluteTemperatureVector(double[] values,
TemperatureUnit unit,
StorageType storageType)
throws ValueException
values - double[]; the values of the entries in the new Absolute Immutable Double AbsoluteTemperatureVectorunit - U; the unit of the new Absolute Immutable Double AbsoluteTemperatureVectorstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic AbsoluteTemperatureVector(List<Double> values, TemperatureUnit unit, StorageType storageType) throws ValueException
values - List; the values of the entries in the new Absolute Immutable Double AbsoluteTemperatureVectorunit - U; the unit of the new Absolute Immutable Double AbsoluteTemperatureVectorstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic AbsoluteTemperatureVector(AbsoluteTemperature[] values, StorageType storageType) throws ValueException
values - DoubleScalar.Rel<U>[]; the values of the entries in the new Absolute Immutable Double
AbsoluteTemperatureVectorstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic AbsoluteTemperatureVector(List<AbsoluteTemperature> values, StorageType storageType) throws ValueException
values - List; the values of the entries in the new Absolute Immutable Double AbsoluteTemperatureVectorstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic AbsoluteTemperatureVector(SortedMap<Integer,AbsoluteTemperature> values, int length, StorageType storageType) throws ValueException
values - DoubleScalar.Rel<U>[]; the values of the entries in the new Absolute Sparse Mutable Double
AbsoluteTemperatureVectorlength - the size of the vectorstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic AbsoluteTemperatureVector(SortedMap<Integer,Double> values, TemperatureUnit unit, int length, StorageType storageType) throws ValueException
values - Map; the map of indexes to values of the Absolute Sparse Mutable Double AbsoluteTemperatureVectorunit - U; the unit of the new Absolute Sparse Mutable Double AbsoluteTemperatureVectorlength - the size of the vectorstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullAbsoluteTemperatureVector(DoubleVectorData data, TemperatureUnit unit)
data - an internal data objectunit - the unitprotected final AbsoluteTemperatureVector instantiateTypeAbs(DoubleVectorData dvd, TemperatureUnit unit)
instantiateTypeAbs in class TypedDoubleVectorAbs<TemperatureUnit,AbsoluteTemperatureVector,TemperatureVector,MutableAbsoluteTemperatureVector,AbsoluteTemperature>dvd - an internal data objectunit - the unitprotected final TemperatureVector instantiateTypeRel(DoubleVectorData dvd, TemperatureUnit unit)
instantiateTypeRel in class TypedDoubleVectorAbs<TemperatureUnit,AbsoluteTemperatureVector,TemperatureVector,MutableAbsoluteTemperatureVector,AbsoluteTemperature>dvd - an internal data objectunit - the unitprotected final MutableAbsoluteTemperatureVector instantiateMutableType(DoubleVectorData dvd, TemperatureUnit unit)
instantiateMutableType in class TypedDoubleVectorAbs<TemperatureUnit,AbsoluteTemperatureVector,TemperatureVector,MutableAbsoluteTemperatureVector,AbsoluteTemperature>dvd - an internal data objectunit - the unitpublic final AbsoluteTemperature get(int index) throws ValueException
get in interface DoubleVectorInterface<TemperatureUnit>get in class TypedDoubleVectorAbs<TemperatureUnit,AbsoluteTemperatureVector,TemperatureVector,MutableAbsoluteTemperatureVector,AbsoluteTemperature>index - int; index of the value to retrieveValueException - when index out of range (index < 0 or index >= size())public final TemperatureVector toRel()
Copyright © 2015–2016 Delft University of Technology. All rights reserved.