public class Interval extends Object implements LocalSimilarityFunction
| Constructor and Description |
|---|
Interval(double interval)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
compute(Object o1,
Object o2)
Applies the similarity function.
|
boolean |
isApplicable(Object o1,
Object o2)
Applicable to Integer
|
public Interval(double interval)
public double compute(Object o1, Object o2) throws NoApplicableSimilarityFunctionException
compute in interface LocalSimilarityFunctiono1 - Numbero2 - NumberNoApplicableSimilarityFunctionExceptionpublic boolean isApplicable(Object o1, Object o2)
isApplicable in interface LocalSimilarityFunctionCopyright © 2018 Group of Artificial Intelligence Applications (GAIA). All rights reserved.