U
- Unit of the matrixpublic interface WriteDoubleMatrixFunctions<U extends Unit<U>>
This file was generated by the OpenTrafficSim value classes generator, 09 mrt, 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 |
---|---|
void |
normalize()
Normalize the matrix, i.e.
|
void |
set(int row,
int column,
DoubleScalar<U> value)
Replace the value at row, column by the supplied value which is in a compatible unit.
|
void |
setInUnit(int row,
int column,
double value,
U valueUnit)
Replace the value at row, column by the supplied value which is expressed in a supplied (compatible) unit.
|
void |
setSI(int row,
int column,
double valueSI)
Replace the value at row, column by the supplied value which is expressed in the standard SI unit.
|
void setSI(int row, int column, double valueSI) throws ValueException
row
- int; row of the value to replacecolumn
- int; column of the value to replacevalueSI
- double; the value to store (expressed in the standard SI unit)ValueException
- when row or column out of range (row < 0 or row >= rows() or column < 0 or column
>= columns())void set(int row, int column, DoubleScalar<U> value) throws ValueException
row
- int; row of the value to replacecolumn
- int; column of the value to replacevalue
- DoubleScalar<U>; the strongly typed value to storeValueException
- when row or column out of range (row < 0 or row >= rows() or column < 0 or column
>= columns())void setInUnit(int row, int column, double value, U valueUnit) throws ValueException
row
- int; row of the value to replacecolumn
- int; column of the value to replacevalue
- double; the value to store (which is expressed in valueUnit)valueUnit
- U; unit of the supplied valueValueException
- when row or column out of range (row < 0 or row >= rows() or column < 0 or column
>= columns())void normalize() throws ValueException
ValueException
- when the sum of the values is zero and normalization is not possibleCopyright © 2014–2015 Delft University of Technology. All rights reserved.