JAL-2397 scale PCA by PID to alignment width to match SeqSpace
[jalview.git] / src / jalview / math / MatrixI.java
index d7a1b70..94b9333 100644 (file)
@@ -72,13 +72,13 @@ public interface MatrixI
    * <p>
    * If parameter <code>maxToZero</code> is true, then the maximum value becomes
    * zero, i.e. all values are subtracted from the maximum. This is consistent
-   * with converting a similarity score to a distance score - the most similar
-   * (identity) corresponds to zero distance. However note that the operation is
-   * not reversible (unless the original minimum value is zero). For example a
-   * range of 10-40 would become 30-0, which would reverse a second time to
-   * 0-30. Also note that a similarity measure (such as BLOSUM) may give
-   * different identity scores for different sequences, so they cannot all
-   * convert to zero distance.
+   * with converting an identity similarity score to a distance score - the most
+   * similar (identity) corresponds to zero distance. However note that the
+   * operation is not reversible (unless the original minimum value is zero).
+   * For example a range of 10-40 would become 30-0, which would reverse a
+   * second time to 0-30. Also note that a general similarity measure (such as
+   * BLOSUM) may give different 'identity' scores for different sequences, so
+   * they cannot all convert to zero distance.
    * <p>
    * If parameter <code>maxToZero</code> is false, then the values are reflected
    * about the average of {min, max} (effectively swapping min and max). This
@@ -87,4 +87,11 @@ public interface MatrixI
    * @param maxToZero
    */
   void reverseRange(boolean maxToZero);
+
+  /**
+   * Multiply all entries by the given value
+   * 
+   * @param d
+   */
+  void multiply(double d);
 }