Class MeasurementErrorModifier
- java.lang.Object
-
- org.aksw.limes.core.measures.measure.pointsets.benchmarking.AbstractPolygonModifier
-
- org.aksw.limes.core.measures.measure.pointsets.benchmarking.MeasurementErrorModifier
-
- All Implemented Interfaces:
IPolygonModifier
public class MeasurementErrorModifier extends AbstractPolygonModifier
- Author:
- Axel-C. Ngonga Ngomo (ngonga@informatik.uni-leipzig.de)
-
-
Constructor Summary
Constructors Constructor Description MeasurementErrorModifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Return name of modifier classPolygonmodify(Polygon p, 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 p, double threshold)
Modifies a polygon by adding a random error between -threshold and +threshold to its latitude and longitude- Parameters:
p- 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
-
-