Package elki.index.tree.spatial.kd
Class MinimalisticMemoryKDTree.CountSortAccesses
- java.lang.Object
-
- elki.data.VectorUtil.SortDBIDsBySingleDimension
-
- elki.index.tree.spatial.kd.MinimalisticMemoryKDTree.CountSortAccesses
-
- All Implemented Interfaces:
java.util.Comparator<DBIDRef>
- Enclosing class:
- MinimalisticMemoryKDTree<O extends NumberVector>
private static class MinimalisticMemoryKDTree.CountSortAccesses extends VectorUtil.SortDBIDsBySingleDimension
Class to count object accesses during construction.- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Constructor Description CountSortAccesses(Counter objaccess, Relation<? extends NumberVector> data)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(DBIDRef id1, DBIDRef id2)
-
Methods inherited from class elki.data.VectorUtil.SortDBIDsBySingleDimension
getDimension, setDimension
-
-
-
-
Field Detail
-
objaccess
final Counter objaccess
Counter for comparisons.
-
-
Constructor Detail
-
CountSortAccesses
public CountSortAccesses(Counter objaccess, Relation<? extends NumberVector> data)
Constructor.- Parameters:
objaccess
- Object access counter.data
- Data relation
-
-
Method Detail
-
compare
public int compare(DBIDRef id1, DBIDRef id2)
- Specified by:
compare
in interfacejava.util.Comparator<DBIDRef>
- Overrides:
compare
in classVectorUtil.SortDBIDsBySingleDimension
-
-