public class SpatialSingleMaxComparator extends java.lang.Object implements java.util.Comparator<SpatialComparable>
Modifier and Type | Field and Description |
---|---|
(package private) int |
dim
Current dimension.
|
Constructor and Description |
---|
SpatialSingleMaxComparator(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.
|
public SpatialSingleMaxComparator(int dim)
dim
- Dimension to sort by.public void setDimension(int dim)
dim
- Dimensionpublic int compare(SpatialComparable o1, SpatialComparable o2)
compare
in interface java.util.Comparator<SpatialComparable>
Copyright © 2019 ELKI Development Team. License information.