public class EuclideanBlockingModule extends Object implements IBlockingModule
| Constructor and Description |
|---|
EuclideanBlockingModule(String props,
String measureName,
double threshold)
Initializes the generator.
|
| Modifier and Type | Method and Description |
|---|---|
static ArrayList<ArrayList<Double>> |
addIdsToList(ArrayList<ArrayList<Double>> keys,
TreeSet<String> propValues) |
static ArrayList<Double> |
copyList(ArrayList<Double> list) |
ArrayList<ArrayList<Integer>> |
getAllBlockIds(Instance a) |
ArrayList<ArrayList<Integer>> |
getAllSourceIds(Instance a,
String sourceProps) |
ArrayList<Integer> |
getBlockId(Instance a)
Computes the block ID for a given instance a.
|
ArrayList<ArrayList<Integer>> |
getBlocksToCompare(ArrayList<Integer> blockId)
Computes the ids of all the blocks surrounding a given block for
comparison Will be extremely useful for parallelizing as we can use
blocking on T and S as then put use locality
|
public EuclideanBlockingModule(String props, String measureName, double threshold)
props - List of properties that make up each dimensionmeasureName - Name of the measure to be used to compute the similarity of
instancesthreshold - General similarity threshold for the metric. This threshold is
transformed into a distance threshold, as sim = a, d = (1 -
a)/a. The space tiling is carried out according to distances,
not similarities. Still, we can ensure that all points within
the similarity range are found.public static ArrayList<ArrayList<Double>> addIdsToList(ArrayList<ArrayList<Double>> keys, TreeSet<String> propValues)
public ArrayList<Integer> getBlockId(Instance a)
getBlockId in interface IBlockingModulea - The instance whose blockId is to be computedpublic ArrayList<ArrayList<Integer>> getBlocksToCompare(ArrayList<Integer> blockId)
getBlocksToCompare in interface IBlockingModuleblockId - indexpublic ArrayList<ArrayList<Integer>> getAllBlockIds(Instance a)
getAllBlockIds in interface IBlockingModulepublic ArrayList<ArrayList<Integer>> getAllSourceIds(Instance a, String sourceProps)
getAllSourceIds in interface IBlockingModuleCopyright © 2020. All rights reserved.