T
- type of the tokenpublic class EuclideanDistance<T> extends Object implements ListMetric<T>, ListDistance<T>
This class is immutable and thread-safe.
Constructor and Description |
---|
EuclideanDistance() |
public float compare(List<T> a, List<T> b)
ListMetric
public float distance(List<T> a, List<T> b)
ListDistance
0.0
indicates that a
and
b
are similar.Copyright © 2014–2018. All rights reserved.