O
- Object class to process.public class SimilarityAdapterLinear<O> extends AbstractSimilarityAdapter<O>
1 - sim
.Modifier and Type | Class and Description |
---|---|
static class |
SimilarityAdapterLinear.Instance<O>
Distance function instance
|
static class |
SimilarityAdapterLinear.Parameterizer<O>
Parameterization class.
|
SIMILARITY_FUNCTION_ID, similarityFunction
Constructor and Description |
---|
SimilarityAdapterLinear(NormalizedSimilarityFunction<? super O,? extends NumberDistance<?,?>> 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 SimilarityAdapterLinear(NormalizedSimilarityFunction<? super O,? extends NumberDistance<?,?>> 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