Class HR3Blocker

  • All Implemented Interfaces:
    IBlockingModule

    public class HR3Blocker
    extends Object
    implements IBlockingModule
    This class implements the HR3 algorithm which can ensure that a certain RRR is reached.
    Author:
    Axel-C. Ngonga Ngomo (ngonga@informatik.uni-leipzig.de)
    • Constructor Detail

      • HR3Blocker

        public HR3Blocker​(String props,
                          String measureName,
                          double threshold)
      • HR3Blocker

        public HR3Blocker​(int granularity,
                          int dimensions)
      • HR3Blocker

        public HR3Blocker​(String props,
                          String measureName,
                          double threshold,
                          int _granularity)
    • Method Detail

      • setGranularity

        public void setGranularity​(int n)
      • getAllBlockIds

        public ArrayList<ArrayList<Integer>> getAllBlockIds​(Instance a)
        Computes all the block ids for a given instance. If it is known that the coordinates of an instance are unique, then use getBlockId. If not, use this method.
        Specified by:
        getAllBlockIds in interface IBlockingModule
        Parameters:
        a - Instance, whose ids are to be returned
        Returns:
        An ArrayList of blockids
      • getAllSourceIds

        public ArrayList<ArrayList<Integer>> getAllSourceIds​(Instance a,
                                                             String props)
        Computes all the block ids for a given instance. If it is known that the coordinates of an instance are unique, then use getBlockId. If not, use this method.
        Specified by:
        getAllSourceIds in interface IBlockingModule
        Parameters:
        a - Instance, whose ids are to be returned
        Returns:
        An ArrayList of blockids