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[]coordsHypercube coordinates.(package private) ArrayModifiableDBIDsinstancesHolds 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 voidadd(DBIDRef instance)intcompareTo(HySortOD.Hypercube o)booleanequals(java.lang.Object obj)intgetCoordAt(int j)int[]getCoords()intgetDensity()DBIDsgetInstances()intgetNumDimensions()inthashCode()java.lang.StringtoString()
-
-
-
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:
compareToin interfacejava.lang.Comparable<HySortOD.Hypercube>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin 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()
-
-