public static class TimeVector.Abs.Sparse extends TimeVector.Abs implements SparseData
TimeVector.Abs.Dense, TimeVector.Abs.SparseDoubleVector.Abs<U extends Unit<U>>, DoubleVector.Rel<U extends Unit<U>>data| Constructor and Description |
|---|
Sparse(double[] values,
TimeUnit unit)
Construct a new Absolute Sparse Immutable DoubleVector.
|
Sparse(SortedMap<Integer,Double> values,
TimeUnit unit,
int time)
Construct a new Absolute Sparse Immutable DoubleVector.
|
Sparse(SortedMap<Integer,DoubleScalar.Abs<TimeUnit>> values,
int time)
Construct a new Absolute Sparse Immutable DoubleVector.
|
Sparse(Time.Abs[] values)
Construct a new Absolute Sparse Immutable DoubleVector.
|
| Modifier and Type | Method and Description |
|---|---|
protected DoubleVectorDataSparse |
getData() |
MutableTimeVector.Abs |
mutable()
Create a mutable version of this DoubleVector.
|
TimeVector.Abs |
toDense()
Create a dense version of this DoubleVector.
|
TimeVector.Abs |
toSparse()
Create a sparse version of this DoubleVector.
|
get, minus, minus, plusminus, minus, pluscardinality, checkIndex, checkSize, checkSize, equals, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, initializeSparse, initializeSparseMA, initializeSparseMR, safeGet, safeSet, size, toString, toString, toString, toString, zSumexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelativepublic Sparse(SortedMap<Integer,Double> values, TimeUnit unit, int time) throws ValueException
values - Map; the map of indexes to values of the Absolute Sparse Immutable DoubleVectorunit - U; the unit of the new Absolute Sparse Immutable DoubleVectortime - the size of the vectorValueException - when values is nullpublic Sparse(SortedMap<Integer,DoubleScalar.Abs<TimeUnit>> values, int time) throws ValueException
values - DoubleScalar.Abs<U>[]; the values of the entries in the new Absolute Sparse Immutable
DoubleVectortime - the size of the vectorValueException - when values has zero entriespublic Sparse(double[] values,
TimeUnit unit)
throws ValueException
values - double[]; the values of the entries in the new Absolute Sparse Immutable DoubleVectorunit - U; the unit of the new Absolute Sparse Immutable DoubleVectorValueException - when values is nullpublic Sparse(Time.Abs[] values) throws ValueException
values - DoubleScalar.Abs<U>[]; the values of the entries in the new Absolute Sparse Immutable
DoubleVectorValueException - when values has zero entriespublic MutableTimeVector.Abs mutable()
mutable in interface DoubleVectorInterface<TimeUnit>mutable in class TimeVector.Absprotected final DoubleVectorDataSparse getData()
getData in class DoubleVector<TimeUnit>public TimeVector.Abs toDense()
toDense in interface DoubleVectorInterface<TimeUnit>toDense in class TimeVector.Abspublic TimeVector.Abs toSparse()
toSparse in interface DoubleVectorInterface<TimeUnit>toSparse in class TimeVector.AbsCopyright © 2015 Delft University of Technology. All rights reserved.