de.lmu.ifi.dbs.elki.distance.distancefunction.subspace
Class DiSHDistanceFunction.Instance<V extends NumberVector<?,?>>

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.AbstractIndexBasedDistanceFunction.Instance<V,P,PreferenceVectorBasedCorrelationDistance,AbstractPreferenceVectorBasedCorrelationDistanceFunction<? super V,?>>
                  extended by de.lmu.ifi.dbs.elki.distance.distancefunction.subspace.AbstractPreferenceVectorBasedCorrelationDistanceFunction.Instance<V,DiSHPreferenceVectorIndex<V>>
                      extended by de.lmu.ifi.dbs.elki.distance.distancefunction.subspace.DiSHDistanceFunction.Instance<V>
All Implemented Interfaces:
DatabaseQuery, DistanceQuery<V,PreferenceVectorBasedCorrelationDistance>, IndexBasedDistanceFunction.Instance<V,DiSHPreferenceVectorIndex<V>,PreferenceVectorBasedCorrelationDistance>
Enclosing class:
DiSHDistanceFunction

public static class DiSHDistanceFunction.Instance<V extends NumberVector<?,?>>
extends AbstractPreferenceVectorBasedCorrelationDistanceFunction.Instance<V,DiSHPreferenceVectorIndex<V>>

The actual instance bound to a particular database.


Field Summary
 
Fields inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.subspace.AbstractPreferenceVectorBasedCorrelationDistanceFunction.Instance
epsilon
 
Fields inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractIndexBasedDistanceFunction.Instance
index, parent
 
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
DiSHDistanceFunction.Instance(Relation<V> database, DiSHPreferenceVectorIndex<V> index, double epsilon, DiSHDistanceFunction distanceFunction)
          Constructor.
 
Method Summary
 PreferenceVectorBasedCorrelationDistance correlationDistance(V v1, V v2, BitSet pv1, BitSet pv2)
          Computes the correlation distance between the two specified vectors according to the specified preference vectors.
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.subspace.AbstractPreferenceVectorBasedCorrelationDistanceFunction.Instance
distance, weightedDistance, weightedDistance, weightedPrefereneceVectorDistance
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractIndexBasedDistanceFunction.Instance
getDistanceFunction, getIndex
 
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
getDistanceFactory, 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
distance, distance, distance, getDistanceFactory, getRelation, infiniteDistance, nullDistance, undefinedDistance
 

Constructor Detail

DiSHDistanceFunction.Instance

public DiSHDistanceFunction.Instance(Relation<V> database,
                                     DiSHPreferenceVectorIndex<V> index,
                                     double epsilon,
                                     DiSHDistanceFunction distanceFunction)
Constructor.

Parameters:
database - Database
index - Preprocessed index
epsilon - Epsilon
distanceFunction - parent distance function
Method Detail

correlationDistance

public PreferenceVectorBasedCorrelationDistance correlationDistance(V v1,
                                                                    V v2,
                                                                    BitSet pv1,
                                                                    BitSet pv2)
Computes the correlation distance between the two specified vectors according to the specified preference vectors.

Specified by:
correlationDistance in class AbstractPreferenceVectorBasedCorrelationDistanceFunction.Instance<V extends NumberVector<?,?>,DiSHPreferenceVectorIndex<V extends NumberVector<?,?>>>
Parameters:
v1 - first vector
v2 - second vector
pv1 - the first preference vector
pv2 - the second preference vector
Returns:
the correlation distance between the two specified vectors

Release 0.4.0 (2011-09-20_1324)