de.lmu.ifi.dbs.elki.distance.distancefunction.subspace
Class HiSCDistanceFunction.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,HiSCPreferenceVectorIndex<V>>
                      extended by de.lmu.ifi.dbs.elki.distance.distancefunction.subspace.HiSCDistanceFunction.Instance<V>
Type Parameters:
V - the type of NumberVector to compute the distances in between
All Implemented Interfaces:
DatabaseQuery, DistanceQuery<V,PreferenceVectorBasedCorrelationDistance>, IndexBasedDistanceFunction.Instance<V,HiSCPreferenceVectorIndex<V>,PreferenceVectorBasedCorrelationDistance>
Enclosing class:
HiSCDistanceFunction<V extends NumberVector<?,?>>

public static class HiSCDistanceFunction.Instance<V extends NumberVector<?,?>>
extends AbstractPreferenceVectorBasedCorrelationDistanceFunction.Instance<V,HiSCPreferenceVectorIndex<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
HiSCDistanceFunction.Instance(Relation<V> database, HiSCPreferenceVectorIndex<V> index, double epsilon, HiSCDistanceFunction<? super V> 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

HiSCDistanceFunction.Instance

public HiSCDistanceFunction.Instance(Relation<V> database,
                                     HiSCPreferenceVectorIndex<V> index,
                                     double epsilon,
                                     HiSCDistanceFunction<? super V> 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<?,?>,HiSCPreferenceVectorIndex<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)