Class ChronologicIntervalDistanceCalculator
java.lang.Object
de.uni_trier.wi2.procake.similarity.base.impl.distance.DistanceCalculator
de.uni_trier.wi2.procake.similarity.base.impl.distance.ChronologicIntervalDistanceCalculator
The distance calculator used to calculate the distance between
chronological objects
.- Author:
- Rainer Maximini, Justin Weich
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canCalculate
(DataClass dataClass) double
getDistance
(DataObject queryObject, DataObject caseObject) double
The maximum distance between twochronological objects
.Methods inherited from class de.uni_trier.wi2.procake.similarity.base.impl.distance.DistanceCalculator
getDataClass, getDistanceCalculatorFor, setDataClass
-
Constructor Details
-
ChronologicIntervalDistanceCalculator
-
-
Method Details
-
canCalculate
-
getDistance
- Specified by:
getDistance
in classDistanceCalculator
-
getMaxDistance
public double getMaxDistance()The maximum distance between twochronological objects
. This corresponds to the value span ofLong
objects.- Specified by:
getMaxDistance
in classDistanceCalculator
- Returns:
- The maximum distance.
-