org.jscience.biology.alignment
Interface Matrix

All Known Implementing Classes:
OutMatrix

public interface Matrix

This interface defines a minimal set of operations that a matrix must implement. This interface is used by the class to provide a general services regardless of how the matrix is actually stored.

See Also:
Smawk

Method Summary
 int numColumns()
          Returns the number of columns that this matrix has.
 int numRows()
          Returns the number of rows that this matrix has.
 int valueAt(int row, int col)
          Returns the value at an specified row and column.
 

Method Detail

valueAt

int valueAt(int row,
            int col)
Returns the value at an specified row and column.

Parameters:
row - row number of element to be retrieved
col - column number of element to be retrieved
Returns:
value at row row column col

numRows

int numRows()
Returns the number of rows that this matrix has.

Returns:
number of rows

numColumns

int numColumns()
Returns the number of columns that this matrix has.

Returns:
number of columns