Class EqualsMeasure
- java.lang.Object
-
- org.aksw.limes.core.measures.measure.AMeasure
-
- org.aksw.limes.core.measures.measure.temporal.TemporalMeasure
-
- org.aksw.limes.core.measures.measure.temporal.allenAlgebra.EqualsMeasure
-
- All Implemented Interfaces:
IMeasure,ITemporalMeasure
public class EqualsMeasure extends TemporalMeasure
Implements the temporal equals measure class.- Version:
- 1.0
- Author:
- Kleanthi Georgala (georgala@informatik.uni-leipzig.de)
-
-
Constructor Summary
Constructors Constructor Description EqualsMeasure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Returns name of a measure.doublegetRuntimeApproximation(double mappingSize)Returns the runtime approximation of a measure.doublegetSimilarity(Object object1, Object object2)Returns the similarity between two objects.doublegetSimilarity(Instance instance1, Instance instance2, String property1, String property2)Returns the similarity between two instances given their begin and end dates.StringgetType()Returns type of a measure.-
Methods inherited from class org.aksw.limes.core.measures.measure.temporal.TemporalMeasure
getFirstProperty, getSecondProperty
-
-
-
-
Method Detail
-
getSimilarity
public double getSimilarity(Object object1, Object object2)
Returns the similarity between two objects.- Parameters:
object1- , the source objectobject2- , the target object- Returns:
- The similarity of the objects
-
getSimilarity
public double getSimilarity(Instance instance1, Instance instance2, String property1, String property2)
Returns the similarity between two instances given their begin and end dates. If the first instance has a begin date equal to the begin date of the second instance and its end date is equal to the end date of the second instance, then their similarity is 1, and 0 otherwise.- 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)
Returns the runtime approximation of a measure.- Parameters:
mappingSize- , the mapping size returned by the measure- Returns:
- The runtime of the measure
-
getName
public String getName()
Returns name of a measure.- Returns:
- Measure name as a string
-
getType
public String getType()
Returns type of a measure.- Returns:
- The runtime of the measure
-
-