Class borderModifier
- java.lang.Object
-
- org.aksw.limes.core.measures.measure.pointsets.benchmarking.AbstractPolygonModifier
-
- org.aksw.limes.core.measures.measure.pointsets.benchmarking.borderModifier
-
- All Implemented Interfaces:
IPolygonModifier
public class borderModifier extends AbstractPolygonModifier
In order not to generate a self intersecting modified polygons, in this modifier, for each line segment p1 p2 across the input polygon we generate 2 random points within the line segment p1 p2- Version:
- Jul 15, 2016
- Author:
- Mohamed Sherif (sherif@informatik.uni-leipzig.de)
-
-
Constructor Summary
Constructors Constructor Description borderModifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Return name of modifier classPolygonmodify(Polygon poly, double threshold)Modifies a polygon by adding a random error between -threshold and +threshold to its latitude and longitude-
Methods inherited from class org.aksw.limes.core.measures.measure.pointsets.benchmarking.AbstractPolygonModifier
modifySet
-
-
-
-
Method Detail
-
modify
public Polygon modify(Polygon poly, double threshold)
Modifies a polygon by adding a random error between -threshold and +threshold to its latitude and longitude- Parameters:
poly- Polygon to modifythreshold- Error range- Returns:
- Modified polygon with the same name
-
getName
public String getName()
Description copied from interface:IPolygonModifierReturn name of modifier class- Returns:
- name of modifier, as string
-
-