Package elki.outlier.density
Class HySortOD.Hypercube
- java.lang.Object
-
- elki.outlier.density.HySortOD.Hypercube
-
- All Implemented Interfaces:
java.lang.Comparable<HySortOD.Hypercube>
- Enclosing class:
- HySortOD
private static class HySortOD.Hypercube extends java.lang.Object implements java.lang.Comparable<HySortOD.Hypercube>
Bounded regions of the space where at least one instance exists.- Author:
- Cabral, EugĂȘnio F.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int[]
coords
Hypercube coordinates.(package private) ArrayModifiableDBIDs
instances
Holds a set of instances within the hypercube.
-
Constructor Summary
Constructors Constructor Description Hypercube(NumberVector values, double length)
Hypercube constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(DBIDRef instance)
int
compareTo(HySortOD.Hypercube o)
boolean
equals(java.lang.Object obj)
int
getCoordAt(int j)
int[]
getCoords()
int
getDensity()
DBIDs
getInstances()
int
getNumDimensions()
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
coords
final int[] coords
Hypercube coordinates.
-
instances
ArrayModifiableDBIDs instances
Holds a set of instances within the hypercube.
-
-
Constructor Detail
-
Hypercube
public Hypercube(NumberVector values, double length)
Hypercube constructor.- Parameters:
values
- Vector representation of an instancelength
- Hypercube's length
-
-
Method Detail
-
compareTo
public int compareTo(HySortOD.Hypercube o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<HySortOD.Hypercube>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getCoordAt
public int getCoordAt(int j)
-
getCoords
public int[] getCoords()
-
getNumDimensions
public int getNumDimensions()
-
getInstances
public DBIDs getInstances()
-
add
public void add(DBIDRef instance)
-
getDensity
public int getDensity()
-
-