JAL-2403 additional methods to support distance/similarity score
[jalview.git] / src / jalview / math / MatrixI.java
index d74a98b..05fe22f 100644 (file)
@@ -28,6 +28,15 @@ public interface MatrixI
   double getValue(int i, int j);
 
   /**
+   * Sets the value at row i, colum j
+   * 
+   * @param i
+   * @param j
+   * @param d
+   */
+  void setValue(int i, int j, double d);
+
+  /**
    * Answers a copy of the values in the i'th row
    * 
    * @return
@@ -56,4 +65,12 @@ public interface MatrixI
 
   void tred();
 
+  double getMaxValue();
+
+  /**
+   * Update each value in the matrix by subtracting it from the given value
+   * 
+   * @param val
+   */
+  void subtractAllFrom(double val);
 }