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.ObjectBitSet 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[]bitsSubspace bitset.protected doublecontrastThe HiCS contrast value.static java.util.Comparator<HiCS.HiCSSubspace>SORT_BY_CONTRAST_ASCSort subspaces by their actual subspace.static java.util.Comparator<HiCS.HiCSSubspace>SORT_BY_CONTRAST_DESCSort subspaces by their actual subspace.static java.util.Comparator<HiCS.HiCSSubspace>SORT_BY_SUBSPACESort subspaces by their actual subspace.
-
Constructor Summary
Constructors Modifier Constructor Description protectedHiCSSubspace(int maxdim)Constructor.protectedHiCSSubspace(HiCS.HiCSSubspace other)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdimensionality()Get the subspace dimensionality.intnextSetBit(int start)Get the next set bit.protected HiCS.HiCSSubspaceor(HiCS.HiCSSubspace other)Or-combine with another subspace.protected HiCS.HiCSSubspaceset(int i)Set a bit in the subspace.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
nextSetBit
public int nextSetBit(int start)
Get the next set bit.- Parameters:
start- Starting value- Returns:
- Next set bit, or -1
-
-