O
- Object typepublic static class PrecomputedSimilarityMatrix.Factory<O> extends java.lang.Object implements IndexFactory<O>
Modifier and Type | Class and Description |
---|---|
static class |
PrecomputedSimilarityMatrix.Factory.Parameterizer<O>
Parameterizer.
|
Modifier and Type | Field and Description |
---|---|
protected SimilarityFunction<? super O> |
similarityFunction
Nested similarity function.
|
Constructor and Description |
---|
Factory(SimilarityFunction<? super O> similarityFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TypeInformation |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
PrecomputedSimilarityMatrix<O> |
instantiate(Relation<O> relation)
Sets the database in the distance function of this index (if existing).
|
protected final SimilarityFunction<? super O> similarityFunction
public Factory(SimilarityFunction<? super O> similarityFunction)
similarityFunction
- Similarity functionpublic PrecomputedSimilarityMatrix<O> instantiate(Relation<O> relation)
IndexFactory
instantiate
in interface IndexFactory<O>
relation
- the relation to indexpublic TypeInformation getInputTypeRestriction()
IndexFactory
getInputTypeRestriction
in interface IndexFactory<O>
Copyright © 2019 ELKI Development Team. License information.