Class 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 Detail

      • coords

        final int[] coords
        Hypercube coordinates.
    • Constructor Detail

      • Hypercube

        public Hypercube​(NumberVector values,
                         double length)
        Hypercube constructor.
        Parameters:
        values - Vector representation of an instance
        length - Hypercube's length
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.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()