org.apache.flink.ml.metrics.distances
Returns the distance between the arguments.
Returns the distance between the arguments.
a Vector defining a multi-dimensional point in some space
a Vector defining a multi-dimensional point in some space
a scalar double of the distance
This class is like EuclideanDistanceMetric but it does not take the square root.
The value calculated by this class is not exact Euclidean distance, but it saves on computation when you need the value for only comparison.