Package elki.math.spacefillingcurves
Class BinarySplitSpatialSorter.Sorter
- java.lang.Object
-
- elki.math.spacefillingcurves.BinarySplitSpatialSorter.Sorter
-
- All Implemented Interfaces:
java.util.Comparator<SpatialComparable>
- Enclosing class:
- BinarySplitSpatialSorter
private static class BinarySplitSpatialSorter.Sorter extends java.lang.Object implements java.util.Comparator<SpatialComparable>
Comparator for sorting spatial objects by the mean value in a single dimension.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intdimCurrent dimension.
-
Constructor Summary
Constructors Constructor Description Sorter(int dim)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(SpatialComparable o1, SpatialComparable o2)voidsetDimension(int dim)Set the dimension to sort by.
-
-
-
Method Detail
-
setDimension
public void setDimension(int dim)
Set the dimension to sort by.- Parameters:
dim- Dimension
-
compare
public int compare(SpatialComparable o1, SpatialComparable o2)
- Specified by:
comparein interfacejava.util.Comparator<SpatialComparable>
-
-