org.decisiondeck.xmcda_oo.utils.matrix
Interface IZeroToOneMatrix<RowType,ColumnType>

Type Parameters:
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.
All Superinterfaces:
IRdFloatMatrix<RowType,ColumnType>, IRdZeroToOneMatrix<RowType,ColumnType>
All Known Subinterfaces:
IAltZeroToOneMatrix
All Known Implementing Classes:
AltFuzzyMatrix, FuzzyMatrix

public interface IZeroToOneMatrix<RowType,ColumnType>
extends IRdZeroToOneMatrix<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

put

void put(RowType row,
         ColumnType column,
         double value)
Puts a value in this matrix at the position specified by the given row and column.

Parameters:
row - not null.
column - not null.
value - between zero and one (inclusive).

remove

Double remove(RowType row,
              ColumnType column)
Removes the value in this matrix at the position specified by the given row and column. If there was no value at that position, this method has no effect.

Parameters:
row - not null.
column - not null.
Returns:
the value which was previously at the given position. Returns null iff there was no value at that position (and, hence, nothing was removed).

isValid

boolean isValid(double value)


Copyright © 2011. All Rights Reserved.