Class CentroidIndex
- java.lang.Object
-
- org.aksw.limes.core.measures.mapper.pointsets.PolygonIndex
-
- org.aksw.limes.core.measures.measure.pointsets.hausdorff.CentroidIndex
-
public class CentroidIndex extends PolygonIndex
Adds the distance from the centroids, which are in the middle of the longest axis. Also stores the radius of the smallest circle which contains the polygon entirely- Author:
- Axel-C. Ngonga Ngomo (ngonga@informatik.uni-leipzig.de)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classCentroidIndex.Circle
-
Field Summary
Fields Modifier and Type Field Description Map<String,CentroidIndex.Circle>centroidsstatic booleanUSE_GREAT_ELLIPTIC_DISTANCE-
Fields inherited from class org.aksw.limes.core.measures.mapper.pointsets.PolygonIndex
computations, distanceIndex, polygonIndex
-
-
Constructor Summary
Constructors Constructor Description CentroidIndex()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pointaverage(Point source, Point target)doubledistance(Point x, Point y)voidindex(Polygon p)Indexes the distances between the points in a given polygon and adds polygon to list of indexes-
Methods inherited from class org.aksw.limes.core.measures.mapper.pointsets.PolygonIndex
getDistance, index, toString
-
-
-
-
Field Detail
-
USE_GREAT_ELLIPTIC_DISTANCE
public static boolean USE_GREAT_ELLIPTIC_DISTANCE
-
centroids
public Map<String,CentroidIndex.Circle> centroids
-
-
Method Detail
-
distance
public double distance(Point x, Point y)
- Parameters:
x- Point xy- Point y- Returns:
- Distance between x and y
-
index
public void index(Polygon p)
Description copied from class:PolygonIndexIndexes the distances between the points in a given polygon and adds polygon to list of indexes- Overrides:
indexin classPolygonIndex- Parameters:
p- Input polygon
-
-