public class AbsoluteTemperatureVector extends AbstractDoubleVectorAbs<AbsoluteTemperatureUnit,TemperatureUnit,AbsoluteTemperatureVector,TemperatureVector,MutableAbsoluteTemperatureVector,AbsoluteTemperature>
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
AbstractDoubleVectorAbs.Itrdata| 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.
|
AbsoluteTemperature[] |
toArray()
Return an array of AbsoluteTemperature Scalars from this vector.
|
AbsoluteTemperatureVector |
toDense()
return a dense version of this vector.
|
AbsoluteTemperatureVector |
toSparse()
return a sparse version of this vector.
|
checkUnit, checkUnit, checkUnit, get, iterator, minus, minus, mutable, pluscardinality, 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 AbsoluteTemperatureVector(double[] values,
AbsoluteTemperatureUnit unit,
StorageType storageType)
throws ValueException
values - double[]; the values of the entries in the new Absolute Immutable Double AbsoluteTemperatureVectorunit - AbsoluteTemperatureUnit; the unit of the new Absolute Immutable Double AbsoluteTemperatureVectorstorageType - StorageType; 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<Double>; the values of the entries in the new Absolute Immutable Double
AbsoluteTemperatureVectorunit - AbsoluteTemperatureUnit; the unit of the new Absolute Immutable Double AbsoluteTemperatureVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic AbsoluteTemperatureVector(AbsoluteTemperature[] values, StorageType storageType) throws ValueException
values - AbsoluteTemperature[]; the values of the entries in the new Absolute Immutable Double
AbsoluteTemperatureVectorstorageType - StorageType; 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<AbsoluteTemperature>; the values of the entries in the new Absolute Immutable Double
AbsoluteTemperatureVectorstorageType - StorageType; 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 - SortedMap<Integer, AbsoluteTemperature>; the values of the entries in the new Absolute Sparse Mutable
Double AbsoluteTemperatureVectorlength - int; the size of the vectorstorageType - StorageType; 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 - SortedMap<Integer, Double>; the map of indexes to values of the Absolute Sparse Mutable Double
AbsoluteTemperatureVectorunit - AbsoluteTemperatureUnit; the unit of the new Absolute Sparse Mutable Double AbsoluteTemperatureVectorlength - int; the size of the vectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullAbsoluteTemperatureVector(DoubleVectorData data, AbsoluteTemperatureUnit unit)
data - DoubleVectorData; an internal data objectunit - AbsoluteTemperatureUnit; the unitprotected final AbsoluteTemperatureVector instantiateTypeAbs(DoubleVectorData dvd, AbsoluteTemperatureUnit unit)
instantiateTypeAbs in class AbstractDoubleVectorAbs<AbsoluteTemperatureUnit,TemperatureUnit,AbsoluteTemperatureVector,TemperatureVector,MutableAbsoluteTemperatureVector,AbsoluteTemperature>dvd - DoubleVectorData; an internal data objectunit - AU; the unitprotected final TemperatureVector instantiateTypeRel(DoubleVectorData dvd, TemperatureUnit unit)
instantiateTypeRel in class AbstractDoubleVectorAbs<AbsoluteTemperatureUnit,TemperatureUnit,AbsoluteTemperatureVector,TemperatureVector,MutableAbsoluteTemperatureVector,AbsoluteTemperature>dvd - DoubleVectorData; an internal data objectunit - RU; the unitprotected final MutableAbsoluteTemperatureVector instantiateMutableType(DoubleVectorData dvd, AbsoluteTemperatureUnit unit)
instantiateMutableType in class AbstractDoubleVectorAbs<AbsoluteTemperatureUnit,TemperatureUnit,AbsoluteTemperatureVector,TemperatureVector,MutableAbsoluteTemperatureVector,AbsoluteTemperature>dvd - DoubleVectorData; an internal data objectunit - AU; the unitprotected final AbsoluteTemperature instantiateScalar(double value, AbsoluteTemperatureUnit unit)
instantiateScalar in class AbstractDoubleVectorAbs<AbsoluteTemperatureUnit,TemperatureUnit,AbsoluteTemperatureVector,TemperatureVector,MutableAbsoluteTemperatureVector,AbsoluteTemperature>value - double; the valueunit - AU; the unitpublic final AbsoluteTemperatureVector toDense()
public final AbsoluteTemperatureVector toSparse()
public AbsoluteTemperature[] toArray()
RuntimeException - wrapping a ValueException on error getting one of the valuesCopyright © 2015–2019 Delft University of Technology. All rights reserved.