public interface DistanceMatrix
Modifier and Type | Method and Description |
---|---|
double |
getDistance(int row,
int column)
Gets the distance at a particular row and column
|
double |
getDistance(Taxon taxonRow,
Taxon taxonColumn)
Gets the distance between 2 taxa
|
double[][] |
getDistances()
Gets a 2-dimensional array containing the distances
|
int |
getSize()
Gets the size of the matrix (which is square), i.e., number of rows or columns.
|
DistanceMatrix |
getSubmatrix(java.util.Collection<Taxon> taxa)
Gets a sub-matrix for only those taxa in the collection (all
of which should be present in this matrix).
|
java.util.List<Taxon> |
getTaxa() |
int getSize()
java.util.List<Taxon> getTaxa()
double getDistance(int row, int column)
row
- the row indexcolumn
- the column indexdouble getDistance(Taxon taxonRow, Taxon taxonColumn)
taxonRow
- taxonColumn
- DistanceMatrix getSubmatrix(java.util.Collection<Taxon> taxa)
taxa
- double[][] getDistances()
http://code.google.com/p/jebl2/