Class GeOxygeneFrechetMeasure
- 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.frechet.GeOxygeneFrechetMeasure
-
- All Implemented Interfaces:
IMeasure,IPointsetsMeasure
public class GeOxygeneFrechetMeasure extends APointsetsMeasure
- Version:
- Jul 15, 2016
- Author:
- Mohamed Sherif (sherif@informatik.uni-leipzig.de)
-
-
Field Summary
-
Fields inherited from class org.aksw.limes.core.measures.measure.pointsets.APointsetsMeasure
computations, USE_GREAT_ELLIPTIC_DISTANCE
-
-
Constructor Summary
Constructors Constructor Description GeOxygeneFrechetMeasure()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecomputeDistance(Polygon X, Polygon Y, double threshold)static doubledistance(Polygon X, Polygon Y, double threshold)intgetComputations()StringgetName()Returns name of a measure.doublegetRuntimeApproximation(double mappingSize)Returns the runtime approximation of a measure.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)Computes the SetMeasure distance for a source and target setstatic fr.ign.cogit.geoxygene.api.spatial.coordgeom.ILineSegmenttoLineSegment(Polygon poly)Convert polygon to ILineSegment-
Methods inherited from class org.aksw.limes.core.measures.measure.pointsets.APointsetsMeasure
getSimilarity, pointToPointDistance
-
-
-
-
Method Detail
-
toLineSegment
public static fr.ign.cogit.geoxygene.api.spatial.coordgeom.ILineSegment toLineSegment(Polygon poly)
Convert polygon to ILineSegment- Parameters:
poly- Polygon- Returns:
- ILineSegment out of the input poly
-
distance
public static double distance(Polygon X, Polygon Y, double threshold)
- Parameters:
X- PolygonY- Polygonthreshold- distance threshold- Returns:
- the GeOxygeneFrechet distance between X and Y
-
getComputations
public int getComputations()
- Specified by:
getComputationsin interfaceIPointsetsMeasure- Overrides:
getComputationsin classAPointsetsMeasure
-
getName
public String getName()
Description copied from interface:IMeasureReturns name of a measure.- Returns:
- Measure name as a string
-
run
public AMapping run(Set<Polygon> source, Set<Polygon> target, double threshold)
Computes the SetMeasure distance for a source and target set- Parameters:
source- Source polygonstarget- Target polygonsthreshold- Distance threshold- Returns:
- Mapping from source to target resources
-
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
-
-