U - Unit of the vectorpublic interface ReadOnlyDoubleVectorFunctions<U extends Unit<U>>
This file was generated by the OpenTrafficSim value classes generator, 26 jun, 2015
Copyright (c) 2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Method and Description |
|---|---|
int |
cardinality()
Count the number of cells that have a non-zero value (ignores tolerance).
|
DoubleScalar<U> |
get(int index)
Retrieve the value stored at a specified index as a DoubleScalar.
|
double |
getInUnit(int index)
Retrieve the value stored at a specified position in the original unit.
|
double |
getInUnit(int index,
U targetUnit)
Retrieve the value stored at a specified position converted into a specified unit.
|
double |
getSI(int index)
Retrieve the value stored at a specified position in the standard SI unit.
|
int |
size()
Retrieve the size of the vector.
|
double |
zSum()
Compute the sum of all values of this vector.
|
int size()
int cardinality()
double getSI(int index)
throws ValueException
index - int; index of the value to retrieveValueException - when index out of range (index < 0 or index >= size())double getInUnit(int index)
throws ValueException
index - int; index of the value to retrieveValueException - when index out of range (index < 0 or index >= size())double getInUnit(int index,
U targetUnit)
throws ValueException
index - int; index of the value to retrievetargetUnit - U; the unit for the resultValueException - when index out of range (index < 0 or index >= size())DoubleScalar<U> get(int index) throws ValueException
index - int; index of the value to retrieveValueException - when index out of range (index < 0 or index >= size())double zSum()
Copyright © 2014–2015 Delft University of Technology. All rights reserved.