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
the norm exponent of space
This class implements a Minkowski distance metric. The metric is a generalization of L(p) distances: Euclidean distance and Manhattan distance. If you need for a special case of p = 1 or p = 2, use ManhattanDistanceMetric, EuclideanDistanceMetric. This class is useful for high exponents.
http://en.wikipedia.org/wiki/Minkowski_distance