|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jebl.evolution.distances.BasicDistanceMatrix
public class BasicDistanceMatrix
Constructor Summary | |
---|---|
BasicDistanceMatrix(Collection<Taxon> taxa,
double[][] distances)
|
Method Summary | |
---|---|
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(Collection<Taxon> taxonSubset)
Gets a sub-matrix for only those taxa in the collection (all of which should be present in this matrix). |
List<Taxon> |
getTaxa()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicDistanceMatrix(Collection<Taxon> taxa, double[][] distances)
Method Detail |
---|
public int getSize()
getSize
in interface DistanceMatrix
public List<Taxon> getTaxa()
getTaxa
in interface DistanceMatrix
public double getDistance(int row, int column)
getDistance
in interface DistanceMatrix
row
- the row indexcolumn
- the column index
public double getDistance(Taxon taxonRow, Taxon taxonColumn)
getDistance
in interface DistanceMatrix
taxonRow
- taxonColumn
-
public DistanceMatrix getSubmatrix(Collection<Taxon> taxonSubset)
getSubmatrix
in interface DistanceMatrix
taxonSubset
-
public double[][] getDistances()
getDistances
in interface DistanceMatrix
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |