X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fmath%2FMatrixI.java;h=5b93c76ca121ea3a9e57a02ffdfe37a2cd6376af;hb=e3f8846ad3af97c5b26e09f7a4e3bcc901f758ca;hp=d7a1b70b4e5c659fed8e28505cbed9d1ebcacb00;hpb=df1447b81289138e8bd0caaf7c7117ad71f74f29;p=jalview.git
diff --git a/src/jalview/math/MatrixI.java b/src/jalview/math/MatrixI.java
index d7a1b70..5b93c76 100644
--- a/src/jalview/math/MatrixI.java
+++ b/src/jalview/math/MatrixI.java
@@ -1,3 +1,23 @@
+/*
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
+ *
+ * This file is part of Jalview.
+ *
+ * Jalview is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation, either version 3
+ * of the License, or (at your option) any later version.
+ *
+ * Jalview is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Jalview. If not, see
* If parameter maxToZero
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.
*
* If parameter maxToZero
is false, then the values are reflected
* about the average of {min, max} (effectively swapping min and max). This
@@ -87,4 +107,11 @@ public interface MatrixI
* @param maxToZero
*/
void reverseRange(boolean maxToZero);
+
+ /**
+ * Multiply all entries by the given value
+ *
+ * @param d
+ */
+ void multiply(double d);
}