|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.hogent.tarsos.lsh.families.DistanceComparator
public class DistanceComparator
This comparator can be used to sort candidate neighbours according to their distance to a query vector. Either for linear search or to sort the LSH candidates found in colliding hash bins.
| Constructor Summary | |
|---|---|
DistanceComparator(Vector query,
DistanceMeasure distanceMeasure)
|
|
| Method Summary | |
|---|---|
int |
compare(Vector one,
Vector other)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public DistanceComparator(Vector query,
DistanceMeasure distanceMeasure)
query - distanceMeasure - | Method Detail |
|---|
public int compare(Vector one,
Vector other)
compare in interface java.util.Comparator<Vector>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||