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)
ListMetricpublic float distance(List<T> a, List<T> b)
ListDistance0.0 indicates that a and
b are similar.Copyright © 2014–2018. All rights reserved.