public class AbsoluteTemperatureVector extends AbstractDoubleVectorAbs<AbsoluteTemperatureUnit,TemperatureUnit,AbsoluteTemperatureVector,TemperatureVector,MutableAbsoluteTemperatureVector,AbsoluteTemperature>
Copyright (c) 2013-2017 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
data
Constructor and Description |
---|
AbsoluteTemperatureVector(AbsoluteTemperature[] values,
StorageType storageType)
Construct a new Absolute Immutable Double AbsoluteTemperatureVector.
|
AbsoluteTemperatureVector(double[] values,
AbsoluteTemperatureUnit unit,
StorageType storageType)
Construct a new Absolute Immutable Double AbsoluteTemperatureVector.
|
AbsoluteTemperatureVector(DoubleVectorData data,
AbsoluteTemperatureUnit 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,
AbsoluteTemperatureUnit 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,
AbsoluteTemperatureUnit unit,
int length,
StorageType storageType)
Construct a new Absolute Immutable Double AbsoluteTemperatureVector.
|
Modifier and Type | Method and Description |
---|---|
protected MutableAbsoluteTemperatureVector |
instantiateMutableType(DoubleVectorData dvd,
AbsoluteTemperatureUnit unit)
Construct a new Absolute Mutable DoubleVector of the right type.
|
protected AbsoluteTemperature |
instantiateScalar(double value,
AbsoluteTemperatureUnit unit)
Construct a new Absolute Immutable DoubleScalar of the right type.
|
protected AbsoluteTemperatureVector |
instantiateTypeAbs(DoubleVectorData dvd,
AbsoluteTemperatureUnit 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.
|
AbsoluteTemperatureVector |
toDense()
return a dense version of this vector.
|
AbsoluteTemperatureVector |
toSparse()
return a sparse version of this vector.
|
checkUnit, checkUnit, checkUnit, get, minus, minus, mutable, plus
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
public AbsoluteTemperatureVector(double[] values, AbsoluteTemperatureUnit 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, AbsoluteTemperatureUnit 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, AbsoluteTemperatureUnit 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, AbsoluteTemperatureUnit unit)
data
- an internal data objectunit
- the unitprotected final AbsoluteTemperatureVector instantiateTypeAbs(DoubleVectorData dvd, AbsoluteTemperatureUnit unit)
instantiateTypeAbs
in class AbstractDoubleVectorAbs<AbsoluteTemperatureUnit,TemperatureUnit,AbsoluteTemperatureVector,TemperatureVector,MutableAbsoluteTemperatureVector,AbsoluteTemperature>
dvd
- an internal data objectunit
- the unitprotected final TemperatureVector instantiateTypeRel(DoubleVectorData dvd, TemperatureUnit unit)
instantiateTypeRel
in class AbstractDoubleVectorAbs<AbsoluteTemperatureUnit,TemperatureUnit,AbsoluteTemperatureVector,TemperatureVector,MutableAbsoluteTemperatureVector,AbsoluteTemperature>
dvd
- an internal data objectunit
- the unitprotected final MutableAbsoluteTemperatureVector instantiateMutableType(DoubleVectorData dvd, AbsoluteTemperatureUnit unit)
instantiateMutableType
in class AbstractDoubleVectorAbs<AbsoluteTemperatureUnit,TemperatureUnit,AbsoluteTemperatureVector,TemperatureVector,MutableAbsoluteTemperatureVector,AbsoluteTemperature>
dvd
- an internal data objectunit
- the unitprotected final AbsoluteTemperature instantiateScalar(double value, AbsoluteTemperatureUnit unit)
instantiateScalar
in class AbstractDoubleVectorAbs<AbsoluteTemperatureUnit,TemperatureUnit,AbsoluteTemperatureVector,TemperatureVector,MutableAbsoluteTemperatureVector,AbsoluteTemperature>
value
- the valueunit
- the unitpublic final AbsoluteTemperatureVector toDense()
public final AbsoluteTemperatureVector toSparse()
Copyright © 2015–2017 Delft University of Technology. All rights reserved.