Package elki.math.spacefillingcurves
Class HilbertSpatialSorter.HilbertRef
- java.lang.Object
-
- elki.math.spacefillingcurves.HilbertSpatialSorter.HilbertRef
-
- All Implemented Interfaces:
java.lang.Comparable<HilbertSpatialSorter.HilbertRef>
- Enclosing class:
- HilbertSpatialSorter
private static class HilbertSpatialSorter.HilbertRef extends java.lang.Object implements java.lang.Comparable<HilbertSpatialSorter.HilbertRef>
Object used in spatial sorting, combining the spatial object and the object ID.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description protected long[]
bits
Hilbert representation.protected SpatialComparable
vec
The referenced object.
-
Constructor Summary
Constructors Modifier Constructor Description protected
HilbertRef(SpatialComparable vec, long[] bits)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(HilbertSpatialSorter.HilbertRef o)
-
-
-
Field Detail
-
vec
protected SpatialComparable vec
The referenced object.
-
bits
protected long[] bits
Hilbert representation.
-
-
Constructor Detail
-
HilbertRef
protected HilbertRef(SpatialComparable vec, long[] bits)
Constructor.- Parameters:
vec
- Vectorbits
- Bit representation
-
-
Method Detail
-
compareTo
public int compareTo(HilbertSpatialSorter.HilbertRef o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<HilbertSpatialSorter.HilbertRef>
-
-