public static class MutableTimeVector.Abs.Sparse extends MutableTimeVector.Abs implements SparseData
MutableTimeVector.Abs.Dense, MutableTimeVector.Abs.SparseMutableDoubleVector.Abs<U extends Unit<U>>, MutableDoubleVector.Rel<U extends Unit<U>>data| Constructor and Description |
|---|
Sparse(double[] values,
TimeUnit unit)
Construct a new Absolute Sparse Mutable TimeVector.
|
Sparse(SortedMap<Integer,Double> values,
TimeUnit unit,
int time)
Construct a new Absolute Sparse Mutable TimeVector.
|
Sparse(SortedMap<Integer,DoubleScalar.Abs<TimeUnit>> values,
int time)
Construct a new Absolute Sparse Mutable TimeVector.
|
Sparse(Time.Abs[] values)
Construct a new Absolute Sparse Mutable TimeVector.
|
| Modifier and Type | Method and Description |
|---|---|
MutableTimeVector.Abs |
copy()
Create a deep copy of this MutableDoubleVector.
|
protected DoubleVectorDataSparse |
getData() |
TimeVector.Abs |
immutable()
Create a immutable version of this MutableDoubleVector.
|
MutableTimeVector.Abs |
mutable()
Create a mutable version of this DoubleVector.
|
MutableTimeVector.Abs |
toDense()
Create a dense version of this DoubleVector.
|
MutableTimeVector.Abs |
toSparse()
Create a sparse version of this DoubleVector.
|
abs, acos, asin, atan, cbrt, ceil, cos, cosh, divideBy, exp, expm1, floor, get, inv, log, log10, log1p, minus, minus, multiplyBy, plus, pow, rint, round, signum, sin, sinh, sqrt, tan, tanh, toDegrees, toRadiansdecrementBy, incrementBy, minus, minus, plusassign, checkCopyOnWrite, decrementByImpl, incrementByImpl, normalize, scaleValueByValue, scaleValueByValue, set, setInUnit, setSIcardinality, 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, isRelativeclone, finalize, getClass, notify, notifyAll, wait, wait, waitcardinality, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, size, toString, toString, toString, toString, zSumpublic Sparse(SortedMap<Integer,Double> values, TimeUnit unit, int time) throws ValueException
values - Map; the map of indexes to values of the Absolute Sparse Mutable TimeVectorunit - U; the unit of the new Absolute Sparse Mutable TimeVectortime - the size of the vectorValueException - when values is nullpublic Sparse(SortedMap<Integer,DoubleScalar.Abs<TimeUnit>> values, int time) throws ValueException
values - Time.Abs<U>[]; the values of the entries in the new Absolute Sparse Mutable TimeVectortime - 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 Mutable TimeVectorunit - U; the unit of the new Absolute Sparse Mutable TimeVectorValueException - when values is nullpublic Sparse(Time.Abs[] values) throws ValueException
values - Time.Abs<U>[]; the values of the entries in the new Absolute Sparse Mutable TimeVectorValueException - when values has zero entriespublic TimeVector.Abs immutable()
immutable in interface MutableDoubleVectorInterface<TimeUnit>immutable in class MutableTimeVector.Abspublic MutableTimeVector.Abs mutable()
mutable in interface DoubleVectorInterface<TimeUnit>mutable in class MutableTimeVector.Abspublic MutableTimeVector.Abs copy()
copy in interface MutableDoubleVectorInterface<TimeUnit>copy in class MutableTimeVector.Absprotected final DoubleVectorDataSparse getData()
getData in class DoubleVector<TimeUnit>public MutableTimeVector.Abs toDense()
toDense in interface DoubleVectorInterface<TimeUnit>toDense in interface MutableDoubleVectorInterface<TimeUnit>toDense in class MutableTimeVector.Abspublic MutableTimeVector.Abs toSparse()
toSparse in interface DoubleVectorInterface<TimeUnit>toSparse in interface MutableDoubleVectorInterface<TimeUnit>toSparse in class MutableTimeVector.AbsCopyright © 2015 Delft University of Technology. All rights reserved.