Class PolygonFrechetDistance
- java.lang.Object
-
- org.aksw.limes.core.measures.measure.pointsets.frechet.PolygonFrechetDistance
-
public class PolygonFrechetDistance extends Object
- Version:
- Jul 15, 2016
- Author:
- Mohamed Sherif (sherif@informatik.uni-leipzig.de)
-
-
Constructor Summary
Constructors Constructor Description PolygonFrechetDistance(Polygon p1, Polygon p2)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intbinarySearch(Double[] a)Performs the standard binary search using two comparisons per level.Double[]computeCriticalValues()doublecomputeFrechetDistance()doublegetFrechetPointToPolygonDistance(Point p, Polygon poly)booleanisFrechet(double epsilon)
-
-
-
Method Detail
-
computeFrechetDistance
public double computeFrechetDistance()
- Returns:
- Frechet distance
-
getFrechetPointToPolygonDistance
public double getFrechetPointToPolygonDistance(Point p, Polygon poly)
- Parameters:
p- Pointpoly- Polygon- Returns:
- Frechet distance between the point p and the polygon poly
-
computeCriticalValues
public Double[] computeCriticalValues()
- Returns:
- critical values
-
binarySearch
public int binarySearch(Double[] a)
Performs the standard binary search using two comparisons per level.- Parameters:
a- array to carry out binary search in it- Returns:
- index where item is found, or NOT_FOUND.
-
isFrechet
public boolean isFrechet(double epsilon)
-
-