|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
RowType - the type of objects used to designate the row part of a position.ColumnType - the type of objects used to designate the column part of a position.public interface IZeroToOneMatrix<RowType,ColumnType>
A matrix which is able to store values in [0, 1], i.e., doubles between 0 and 1 inclusive, at a set of positions, each position being represented by a row and a column.
Vocabulary note: an entry can be a value or can be null, a value is a double between zero and one.
| Method Summary | |
|---|---|
boolean |
isValid(double value)
|
void |
put(RowType row,
ColumnType column,
double value)
Puts a value in this matrix at the position specified by the given row and column. |
Double |
remove(RowType row,
ColumnType column)
Removes the value in this matrix at the position specified by the given row and column. |
| Methods inherited from interface org.decisiondeck.xmcda_oo.utils.matrix.IRdZeroToOneMatrix |
|---|
getEntry |
| Methods inherited from interface org.decisiondeck.xmcda_oo.utils.matrix.IRdFloatMatrix |
|---|
approxEquals, equals, getColumns, getRows, getValueCount, isComplete, isEmpty |
| Method Detail |
|---|
void put(RowType row,
ColumnType column,
double value)
row - not null.column - not null.value - between zero and one (inclusive).
Double remove(RowType row,
ColumnType column)
row - not null.column - not null.
null iff there was no value at
that position (and, hence, nothing was removed).boolean isValid(double value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||