O
- object class to process.public class LnSimilarityAdapter<O> extends AbstractSimilarityAdapter<O>
-log(sim)
.Modifier and Type | Class and Description |
---|---|
static class |
LnSimilarityAdapter.Instance<O>
Distance function instance
|
static class |
LnSimilarityAdapter.Parameterizer<O>
Parameterization class.
|
SIMILARITY_FUNCTION_ID, similarityFunction
Constructor and Description |
---|
LnSimilarityAdapter(NormalizedSimilarityFunction<? super O> similarityFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<T extends O> |
instantiate(Relation<T> database)
Instantiate with a database to get the actual distance query.
|
equals, getDistanceFactory, getInputTypeRestriction, isSymmetric
isMetric
public LnSimilarityAdapter(NormalizedSimilarityFunction<? super O> similarityFunction)
similarityFunction
- Similarity functionpublic <T extends O> DistanceQuery<T,DoubleDistance> instantiate(Relation<T> database)
DistanceFunction
instantiate
in interface DistanceFunction<O,DoubleDistance>
instantiate
in class AbstractSimilarityAdapter<O>
database
- The representation to use