de.lmu.ifi.dbs.elki.distance.distancefunction.adapter
Class SimilarityAdapterLn.Instance<O>
java.lang.Object
de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery<O>
de.lmu.ifi.dbs.elki.database.query.distance.AbstractDistanceQuery<O,D>
de.lmu.ifi.dbs.elki.database.query.distance.AbstractDatabaseDistanceQuery<O,D>
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDatabaseDistanceFunction.Instance<O,DoubleDistance>
de.lmu.ifi.dbs.elki.distance.distancefunction.adapter.AbstractSimilarityAdapter.Instance<O>
de.lmu.ifi.dbs.elki.distance.distancefunction.adapter.SimilarityAdapterLn.Instance<O>
- Type Parameters:
O
- Object type
- All Implemented Interfaces:
- DatabaseQuery, DistanceQuery<O,DoubleDistance>
- Enclosing class:
- SimilarityAdapterLn<O>
public static class SimilarityAdapterLn.Instance<O>
- extends AbstractSimilarityAdapter.Instance<O>
Distance function instance
Method Summary |
double |
transform(double similarity)
Transformation function. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimilarityAdapterLn.Instance
public SimilarityAdapterLn.Instance(Relation<O> database,
DistanceFunction<? super O,DoubleDistance> parent,
SimilarityQuery<O,? extends NumberDistance<?,?>> similarityQuery)
- Constructor.
- Parameters:
database
- Databaseparent
- Parent distancesimilarityQuery
- similarity Query to use
transform
public double transform(double similarity)
- Description copied from class:
AbstractSimilarityAdapter.Instance
- Transformation function.
- Specified by:
transform
in class AbstractSimilarityAdapter.Instance<O>
- Parameters:
similarity
- Similarity value
- Returns:
- Distance value