de.lmu.ifi.dbs.elki.distance.distancefunction.adapter
Class SimilarityAdapterLn.Instance<O>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery<O>
      extended by de.lmu.ifi.dbs.elki.database.query.distance.AbstractDistanceQuery<O,D>
          extended by de.lmu.ifi.dbs.elki.database.query.distance.AbstractDatabaseDistanceQuery<O,D>
              extended by de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDatabaseDistanceFunction.Instance<O,DoubleDistance>
                  extended by de.lmu.ifi.dbs.elki.distance.distancefunction.adapter.AbstractSimilarityAdapter.Instance<O>
                      extended by 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


Field Summary
 
Fields inherited from class de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery
relation
 
Fields inherited from interface de.lmu.ifi.dbs.elki.database.query.DatabaseQuery
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
 
Constructor Summary
SimilarityAdapterLn.Instance(Relation<O> database, DistanceFunction<? super O,DoubleDistance> parent, SimilarityQuery<O,? extends NumberDistance<?,?>> similarityQuery)
          Constructor.
 
Method Summary
 double transform(double similarity)
          Transformation function.
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.adapter.AbstractSimilarityAdapter.Instance
distance, getDistanceFactory
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDatabaseDistanceFunction.Instance
getDistanceFunction
 
Methods inherited from class de.lmu.ifi.dbs.elki.database.query.distance.AbstractDatabaseDistanceQuery
distance, distance, distance
 
Methods inherited from class de.lmu.ifi.dbs.elki.database.query.distance.AbstractDistanceQuery
infiniteDistance, nullDistance, undefinedDistance
 
Methods inherited from class de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery
getRelation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.lmu.ifi.dbs.elki.database.query.distance.DistanceQuery
getRelation
 

Constructor Detail

SimilarityAdapterLn.Instance

public SimilarityAdapterLn.Instance(Relation<O> database,
                                    DistanceFunction<? super O,DoubleDistance> parent,
                                    SimilarityQuery<O,? extends NumberDistance<?,?>> similarityQuery)
Constructor.

Parameters:
database - Database
parent - Parent distance
similarityQuery - similarity Query to use
Method Detail

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

Release 0.4.0 (2011-09-20_1324)