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 implements a Manhattan distance metric. The class calculates the distance between the given vectors by summing the differences between each coordinate.
http://en.wikipedia.org/wiki/Taxicab_geometry