Package elki.outlier.distance
Class HilOut.HilFeature
- java.lang.Object
-
- elki.outlier.distance.HilOut.HilFeature
-
- All Implemented Interfaces:
java.lang.Comparable<HilOut.HilFeature>
static final class HilOut.HilFeature extends java.lang.Object implements java.lang.Comparable<HilOut.HilFeature>
Hilbert representation of a single object. Details of this representation are discussed in the main HilOut publication, see "point features".- Author:
- Jonathan von Brünken
-
-
Field Summary
Fields Modifier and Type Field Description long[]hilbertHilbert representation TODO: use byte[] to save some memory, but slower?elki.database.ids.DBIDidObject IDdoublelboundLower bound of objectintlevelObject levelelki.utilities.datastructures.heap.ObjectHeap<elki.database.ids.DoubleDBIDPair>nnHeap with the nearest known neighborselki.database.ids.HashSetModifiableDBIDsnn_keysSet representation of the nearest neighbors for faster lookupsdoublesum_nnCurrent weight (sum of nn distances)doubleuboundUpper bound for object
-
Constructor Summary
Constructors Constructor Description HilFeature(elki.database.ids.DBID id, elki.utilities.datastructures.heap.ObjectHeap<elki.database.ids.DoubleDBIDPair> nn)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(HilOut.HilFeature o)protected voidinsert(elki.database.ids.DBID id, double dt, int k)insert function inserts a nearest neighbor into a features nn list and its distance
-
-
-
Field Detail
-
id
public elki.database.ids.DBID id
Object ID
-
hilbert
public long[] hilbert
Hilbert representation TODO: use byte[] to save some memory, but slower?
-
level
public int level
Object level
-
ubound
public double ubound
Upper bound for object
-
lbound
public double lbound
Lower bound of object
-
nn
public elki.utilities.datastructures.heap.ObjectHeap<elki.database.ids.DoubleDBIDPair> nn
Heap with the nearest known neighbors
-
nn_keys
public elki.database.ids.HashSetModifiableDBIDs nn_keys
Set representation of the nearest neighbors for faster lookups
-
sum_nn
public double sum_nn
Current weight (sum of nn distances)
-
-
Method Detail
-
compareTo
public int compareTo(HilOut.HilFeature o)
- Specified by:
compareToin interfacejava.lang.Comparable<HilOut.HilFeature>
-
insert
protected void insert(elki.database.ids.DBID id, double dt, int k)insert function inserts a nearest neighbor into a features nn list and its distance- Parameters:
id- DBID of the nearest neighbordt- distance or the neighbor to the features positionk- K
-
-