From: James Procter Date: Mon, 27 Feb 2023 17:26:46 +0000 (+0000) Subject: JAL-4134 compute normalised dot product for contact matrix similarities X-Git-Tag: Release_2_11_3_0~15^2^2~28 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=948828a5fed141e2ed319586687b80b6d0298268;p=jalview.git JAL-4134 compute normalised dot product for contact matrix similarities --- diff --git a/src/jalview/analysis/AverageDistanceEngine.java b/src/jalview/analysis/AverageDistanceEngine.java index 90a96e0..ed6f861 100644 --- a/src/jalview/analysis/AverageDistanceEngine.java +++ b/src/jalview/analysis/AverageDistanceEngine.java @@ -50,11 +50,20 @@ public class AverageDistanceEngine extends TreeEngine this.av =av; this.aa = aa; this.cm=cm; + calculate(cm); + + } + public void calculate(ContactMatrixI cm) + { + this.cm = cm; node = new Vector(); clusters = new Vector(); distances = new Matrix(new double[cm.getWidth()][cm.getWidth()]); noseqs=cm.getWidth(); done = new BitSet(); + double moduli[]=new double[cm.getWidth()]; + + for (int i=0;i