private Sequence[] sequences;
-
private String[] identifiers;
public ForesterMatrix(MatrixI jalviewInputMatrix,
return 0;
}
+ /**
+ * Returns the length of whichever is longest, columns or rows
+ */
@Override
public int getSize()
{
- return jalviewMatrix.width();
+ return jalviewMatrix.getValues().length;
}
+ /**
+ * See {@link MatrixI#getValue(int,int)} except that the order of column, row
+ * in the parameters is inverted here
+ */
@Override
public double getValue(int col, int row)
{
}
+ /**
+ * See {@link MatrixI#setValue()} except that the order of column, row in the
+ * parameters is inverted here
+ */
@Override
public void setValue(int col, int row, double distance)
{
return null;
}
+ /**
+ * See {@link MatrixI#getValues()}
+ */
@Override
public double[][] getValues()
{
double getValue(int i, int j);
/**
- * Sets the value at row i, colum j
+ * Sets the value at row i, column j
*
* @param i
* @param j
*/
double[] getRow(int i);
+ /**
+ * Answers all values present in the Matrix ordered by row,column
+ *
+ * @return the double array containing the values ordered in {row values} per
+ * column
+ */
double[][] getValues();