public class SpatialSingleMinComparator extends Object implements Comparator<SpatialComparable>
Modifier and Type | Field and Description |
---|---|
(package private) int |
dim
Current dimension.
|
Constructor and Description |
---|
SpatialSingleMinComparator(int dim)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(SpatialComparable o1,
SpatialComparable o2) |
void |
setDimension(int dim)
Set the dimension to sort by.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public SpatialSingleMinComparator(int dim)
dim
- Dimension to sort by.public void setDimension(int dim)
dim
- Dimensionpublic int compare(SpatialComparable o1, SpatialComparable o2)
compare
in interface Comparator<SpatialComparable>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.