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

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDatabaseDistanceFunction<O,DoubleDistance>
      extended by de.lmu.ifi.dbs.elki.distance.distancefunction.adapter.AbstractSimilarityAdapter<O>
          extended by de.lmu.ifi.dbs.elki.distance.distancefunction.adapter.SimilarityAdapterArccos<O>
Type Parameters:
O - Object class to process.
All Implemented Interfaces:
DistanceFunction<O,DoubleDistance>, InspectionUtilFrequentlyScanned, Parameterizable

public class SimilarityAdapterArccos<O>
extends AbstractSimilarityAdapter<O>

Adapter from a normalized similarity function to a distance function using arccos(sim).


Nested Class Summary
static class SimilarityAdapterArccos.Instance<O>
          Distance function instance
static class SimilarityAdapterArccos.Parameterizer<O>
          Parameterization class.
 
Field Summary
 
Fields inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.adapter.AbstractSimilarityAdapter
SIMILARITY_FUNCTION_ID, similarityFunction
 
Constructor Summary
SimilarityAdapterArccos(NormalizedSimilarityFunction<? super O,? extends NumberDistance<?,?>> similarityFunction)
          Constructor.
 
Method Summary
<T extends O>
DistanceQuery<T,DoubleDistance>
instantiate(Relation<T> database)
          Instantiate with a database to get the actual distance query.
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.adapter.AbstractSimilarityAdapter
equals, getDistanceFactory, getInputTypeRestriction, isSymmetric
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDatabaseDistanceFunction
isMetric
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimilarityAdapterArccos

public SimilarityAdapterArccos(NormalizedSimilarityFunction<? super O,? extends NumberDistance<?,?>> similarityFunction)
Constructor.

Parameters:
similarityFunction - Similarity function
Method Detail

instantiate

public <T extends O> DistanceQuery<T,DoubleDistance> instantiate(Relation<T> database)
Description copied from interface: DistanceFunction
Instantiate with a database to get the actual distance query.

Specified by:
instantiate in interface DistanceFunction<O,DoubleDistance>
Specified by:
instantiate in class AbstractSimilarityAdapter<O>
Parameters:
database - The representation to use
Returns:
Actual distance query.

Release 0.4.0 (2011-09-20_1324)