Class HySortOD.DensityStrategy

    • Field Detail

      • Wmax

        int Wmax
        Max hypercube neighborhood density
    • Constructor Detail

      • DensityStrategy

        private DensityStrategy()
    • Method Detail

      • buildIndex

        abstract HySortOD.DensityStrategy buildIndex​(java.util.List<HySortOD.Hypercube> H)
        Construct the index for compute hypercube density according to a strategy.
        Parameters:
        H - List of hypercubes
        Returns:
        DensityStrategy Strategy instance
      • getDensities

        abstract int[] getDensities()
        Returns:
        Densities of all hypercubes
      • getMaxDensity

        double getMaxDensity()
        Returns:
        Maximum density
      • isImmediate

        protected boolean isImmediate​(HySortOD.Hypercube hi,
                                      HySortOD.Hypercube hk)
        Validate if Hypercube hk is immediate neighbor of Hypercube hi.
        Parameters:
        hi - Hypercube hi
        hk - Hypercube hk
        Returns:
      • isProspective

        protected boolean isProspective​(HySortOD.Hypercube hi,
                                        HySortOD.Hypercube hk,
                                        int col)
        Validate if Hypercube hk is immediate neighbor of Hypercube hi using a the same coordinate.
        Parameters:
        hi - Hypercube hi
        hk - Hypercube hk
        col - Hypercube coordinate
        Returns: