Class Euclidean


  • public final class Euclidean
    extends java.lang.Object
    Here we calculate Euclidean similarity metrics using Euclidean dictance as described in e.g. https://en.wikipedia.org/wiki/Euclidean_distance We specifically calculate the Euclidean squared distance for the overlap of the arrays, potentially ignoring the tail of one of them. We then normalise this squared distance in order to clamp the number into the range (0,1] so that the metric can be used for comparisons up stream.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double doubleMetric​(double[] left, double[] right)  
      static double floatMetric​(float[] left, float[] right)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • floatMetric

        public static double floatMetric​(float[] left,
                                         float[] right)
      • doubleMetric

        public static double doubleMetric​(double[] left,
                                          double[] right)