Class Euclidean
- java.lang.Object
-
- org.neo4j.gds.similarity.knn.metrics.Euclidean
-
public final class Euclidean extends java.lang.ObjectHere 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 doubledoubleMetric(double[] left, double[] right)static doublefloatMetric(float[] left, float[] right)
-