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 Tanimoto distance metric. The class calculates the distance between the given vectors. The vectors are assumed as bit-wise vectors. We convert the result of division to a usable distance. So, 1 - similarity is actually returned.
http://en.wikipedia.org/wiki/Jaccard_index