Package elki.outlier.meta
Class HiCS.HiCSSubspace
- java.lang.Object
-
- elki.outlier.meta.HiCS.HiCSSubspace
-
- Enclosing class:
- HiCS
public static class HiCS.HiCSSubspace extends java.lang.Object
BitSet that holds a contrast value as field. Used for the representation of a subspace in HiCS- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description protected long[]
bits
Subspace bitset.protected double
contrast
The HiCS contrast value.static java.util.Comparator<HiCS.HiCSSubspace>
SORT_BY_CONTRAST_ASC
Sort subspaces by their actual subspace.static java.util.Comparator<HiCS.HiCSSubspace>
SORT_BY_CONTRAST_DESC
Sort subspaces by their actual subspace.static java.util.Comparator<HiCS.HiCSSubspace>
SORT_BY_SUBSPACE
Sort subspaces by their actual subspace.
-
Constructor Summary
Constructors Modifier Constructor Description protected
HiCSSubspace(int maxdim)
Constructor.protected
HiCSSubspace(HiCS.HiCSSubspace other)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
dimensionality()
Get the subspace dimensionality.int
nextSetBit(int start)
Get the next set bit.protected HiCS.HiCSSubspace
or(HiCS.HiCSSubspace other)
Or-combine with another subspace.protected HiCS.HiCSSubspace
set(int i)
Set a bit in the subspace.java.lang.String
toString()
-
-
-
Field Detail
-
bits
protected long[] bits
Subspace bitset.
-
contrast
protected double contrast
The HiCS contrast value.
-
SORT_BY_CONTRAST_ASC
public static final java.util.Comparator<HiCS.HiCSSubspace> SORT_BY_CONTRAST_ASC
Sort subspaces by their actual subspace.
-
SORT_BY_CONTRAST_DESC
public static final java.util.Comparator<HiCS.HiCSSubspace> SORT_BY_CONTRAST_DESC
Sort subspaces by their actual subspace.
-
SORT_BY_SUBSPACE
public static final java.util.Comparator<HiCS.HiCSSubspace> SORT_BY_SUBSPACE
Sort subspaces by their actual subspace.
-
-
Constructor Detail
-
HiCSSubspace
protected HiCSSubspace(int maxdim)
Constructor.- Parameters:
maxdim
- Maximum dimensionality
-
HiCSSubspace
protected HiCSSubspace(HiCS.HiCSSubspace other)
Constructor.- Parameters:
other
- Existing set to clone
-
-
Method Detail
-
dimensionality
public int dimensionality()
Get the subspace dimensionality.- Returns:
- Dimensionality
-
set
protected HiCS.HiCSSubspace set(int i)
Set a bit in the subspace.- Parameters:
i
- Bit to set- Returns:
- this object
-
or
protected HiCS.HiCSSubspace or(HiCS.HiCSSubspace other)
Or-combine with another subspace.- Parameters:
other
- Other subspace- Returns:
- This subspace
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
nextSetBit
public int nextSetBit(int start)
Get the next set bit.- Parameters:
start
- Starting value- Returns:
- Next set bit, or -1
-
-