public class RatioDistanceFunction extends Object implements IDistanceFunction
IDistanceFunctioninterface for scoring the distance between ratio-scaled categories. That is to say, categories represent a numerical value whose difference and distance to a zero element can be measured. A typical example is measuring the time needed for a certain task: it makes a large difference if one accomplishes the task in 1 minute or in 5 minutes, but there is not much difference between requiring 3 full hours and 3 hours plus 5 minutes. Mathematically, the ratio scale allows for the equality, comparison, addition, and multiplication operations, which is why probabilities and measuring entropy is an often-used example for ratio scaled values (cf. Resnik & Lin, 2010). The distance function assumes the categories to be integers or doubles and falls back to a
NominalDistanceFunctionfor other data types.
|Constructor and Description|
|Modifier and Type||Method and Description|
Returns a distance value for the given pair of categories used within the given annotation study.
public double measureDistance(IAnnotationStudy study, Object category1, Object category2)
Copyright © 2011–2015 Ubiquitous Knowledge Processing (UKP) Lab. All rights reserved.