O
- Object typepublic static class LnSimilarityAdapter.Instance<O> extends AbstractSimilarityAdapter.Instance<O>
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
LnSimilarityAdapter.Instance(Relation<O> database,
DistanceFunction<? super O,DoubleDistance> parent,
SimilarityQuery<O,? extends NumberDistance<?,?>> similarityQuery)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
transform(double similarity)
Transformation function.
|
distance, getDistanceFactory
getDistanceFunction
distance, distance, distance
infiniteDistance, nullDistance, undefinedDistance
getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRelation
public LnSimilarityAdapter.Instance(Relation<O> database, DistanceFunction<? super O,DoubleDistance> parent, SimilarityQuery<O,? extends NumberDistance<?,?>> similarityQuery)
database
- Databaseparent
- Parent distancesimilarityQuery
- similarity Query to usepublic double transform(double similarity)
AbstractSimilarityAdapter.Instance
transform
in class AbstractSimilarityAdapter.Instance<O>
similarity
- Similarity value