de.lmu.ifi.dbs.elki.distance.distancefunction.adapter
Class SimilarityAdapterArccos.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.SimilarityAdapterArccos.Instance<O>
- Type Parameters:
O
- Object type
- All Implemented Interfaces:
- DatabaseQuery, DistanceQuery<O,DoubleDistance>
- Enclosing class:
- SimilarityAdapterArccos<O>
public static class SimilarityAdapterArccos.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 |
SimilarityAdapterArccos.Instance
public SimilarityAdapterArccos.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