public class CachedDistanceFunction extends Object implements IDistanceFunction
SetAnnotationDistanceFunction.IDistanceFunction| Modifier and Type | Field and Description |
|---|---|
protected Hashtable<String,Double> |
cache |
protected IDistanceFunction |
wrappee |
| Constructor and Description |
|---|
CachedDistanceFunction(IDistanceFunction wrappee)
Instantiates the wrapper for the given distance function.
|
| Modifier and Type | Method and Description |
|---|---|
double |
measureDistance(IAnnotationStudy study,
Object category1,
Object category2)
Returns a distance value for the given pair of categories used within
the given annotation study.
|
protected IDistanceFunction wrappee
public CachedDistanceFunction(IDistanceFunction wrappee)
public double measureDistance(IAnnotationStudy study, Object category1, Object category2)
IDistanceFunctionmeasureDistance in interface IDistanceFunctionCopyright © 2011–2015 Ubiquitous Knowledge Processing (UKP) Lab. All rights reserved.