Class IndexedHausdorffMeasure
- java.lang.Object
-
- org.aksw.limes.core.measures.measure.AMeasure
-
- org.aksw.limes.core.measures.measure.pointsets.APointsetsMeasure
-
- org.aksw.limes.core.measures.measure.pointsets.hausdorff.IndexedHausdorffMeasure
-
- All Implemented Interfaces:
IMeasure,IPointsetsMeasure
- Direct Known Subclasses:
CentroidIndexedHausdorffMeasure
public class IndexedHausdorffMeasure extends APointsetsMeasure
- Author:
- Axel-C. Ngonga Ngomo (ngonga@informatik.uni-leipzig.de)
-
-
Field Summary
Fields Modifier and Type Field Description NaiveHausdorffMeasurenhPolygonIndextargetIndex-
Fields inherited from class org.aksw.limes.core.measures.measure.pointsets.APointsetsMeasure
computations, USE_GREAT_ELLIPTIC_DISTANCE
-
-
Constructor Summary
Constructors Constructor Description IndexedHausdorffMeasure()Initialization ensures that application fails if points were not indexed before distances are computed
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecomputeDistance(Polygon X, Polygon Y, double threshold)intgetComputations()Map<Point,Map<Point,Double>>getInnerDistances(Polygon s)StringgetName()Returns name of a measure.doublegetRuntimeApproximation(double mappingSize)Returns the runtime approximation of a measure.doublegetSimilarity(Object object1, Object object2)Returns the similarity between two objects.doublegetSimilarity(Instance instance1, Instance instance2, String property1, String property2)Returns the similarity between two instances, given their corresponding properties.StringgetType()Returns type of a measure.AMappingrun(Set<Polygon> source, Set<Polygon> target, double threshold)Map<String,Map<String,Double>>runWithoutIndex(Set<Polygon> source, Set<Polygon> target, double threshold)-
Methods inherited from class org.aksw.limes.core.measures.measure.pointsets.APointsetsMeasure
pointToPointDistance
-
-
-
-
Field Detail
-
targetIndex
public PolygonIndex targetIndex
-
nh
public NaiveHausdorffMeasure nh
-
-
Method Detail
-
getComputations
public int getComputations()
- Specified by:
getComputationsin interfaceIPointsetsMeasure- Overrides:
getComputationsin classAPointsetsMeasure
-
getInnerDistances
public Map<Point,Map<Point,Double>> getInnerDistances(Polygon s)
- Parameters:
s- Polygon- Returns:
- Inner distances of s
-
runWithoutIndex
public Map<String,Map<String,Double>> runWithoutIndex(Set<Polygon> source, Set<Polygon> target, double threshold)
-
getName
public String getName()
Description copied from interface:IMeasureReturns name of a measure.- Returns:
- Measure name as a string
-
getSimilarity
public double getSimilarity(Object object1, Object object2)
Description copied from interface:IMeasureReturns the similarity between two objects.- Specified by:
getSimilarityin interfaceIMeasure- Overrides:
getSimilarityin classAPointsetsMeasure- Parameters:
object1- , the source objectobject2- , the target object- Returns:
- The similarity of the objects
-
getType
public String getType()
Description copied from interface:IMeasureReturns type of a measure.- Returns:
- The runtime of the measure
-
getSimilarity
public double getSimilarity(Instance instance1, Instance instance2, String property1, String property2)
Description copied from interface:IMeasureReturns the similarity between two instances, given their corresponding properties.- Parameters:
instance1- , the source instanceinstance2- , the target instanceproperty1- , the source propertyproperty2- , the target property- Returns:
- The similarity of the instances
-
getRuntimeApproximation
public double getRuntimeApproximation(double mappingSize)
Description copied from interface:IMeasureReturns the runtime approximation of a measure.- Parameters:
mappingSize- , the mapping size returned by the measure- Returns:
- The runtime of the measure
-
-