org.decisiondeck.xmcda_oo.utils.matrix
Interface IRdZeroToOneMatrix<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>
All Known Subinterfaces:
IAltZeroToOneMatrix, IZeroToOneMatrix<RowType,ColumnType>
All Known Implementing Classes:
AltFuzzyMatrix, ConstantCompleteMatrix, FuzzyMatrix, OneMinusInverseMatrix

public interface IRdZeroToOneMatrix<RowType,ColumnType>
extends IRdFloatMatrix<RowType,ColumnType>

A matrix which is able to retrieve 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 entries.

If this matrix is complete, it is equivalent to a fuzzy relation. If it is not complete, then a difference between a fuzzy relation is that this matrix has null entries associated to some positions, which is different than a zero value.

Vocabulary note: an entry can be a value or can be null, a value is a double between zero and one.

Note that, although this interface is read-only, the underlying object may be mutable.


Method Summary
 Double getEntry(RowType row, ColumnType column)
          Returns the value at the position specified by the given row and column, of null if there is none.
 
Methods inherited from interface org.decisiondeck.xmcda_oo.utils.matrix.IRdFloatMatrix
approxEquals, equals, getColumns, getRows, getValueCount, isComplete, isEmpty
 

Method Detail

getEntry

Double getEntry(RowType row,
                ColumnType column)
Returns the value at the position specified by the given row and column, of null if there is none.

Specified by:
getEntry in interface IRdFloatMatrix<RowType,ColumnType>
Parameters:
row - not null.
column - not null.
Returns:
the double value at that position (between zero and one inclusive), or null.


Copyright © 2011. All Rights Reserved.