Class 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 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • nextSetBit

        public int nextSetBit​(int start)
        Get the next set bit.
        Parameters:
        start - Starting value
        Returns:
        Next set bit, or -1