de.lmu.ifi.dbs.elki.distance.distancefunction.correlation
Class ERiCDistanceFunction.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,FilteredLocalPCAIndex<V>,BitDistance,ERiCDistanceFunction>
                  extended by de.lmu.ifi.dbs.elki.distance.distancefunction.correlation.ERiCDistanceFunction.Instance<V>
All Implemented Interfaces:
DatabaseQuery, DistanceQuery<V,BitDistance>, FilteredLocalPCABasedDistanceFunction.Instance<V,FilteredLocalPCAIndex<V>,BitDistance>, IndexBasedDistanceFunction.Instance<V,FilteredLocalPCAIndex<V>,BitDistance>
Enclosing class:
ERiCDistanceFunction

public static class ERiCDistanceFunction.Instance<V extends NumberVector<?,?>>
extends AbstractIndexBasedDistanceFunction.Instance<V,FilteredLocalPCAIndex<V>,BitDistance,ERiCDistanceFunction>
implements FilteredLocalPCABasedDistanceFunction.Instance<V,FilteredLocalPCAIndex<V>,BitDistance>

The actual instance bound to a particular database.


Field Summary
private  double delta
          Holds the value of ERiCDistanceFunction.DELTA_ID.
private  double tau
          Holds the value of ERiCDistanceFunction.TAU_ID.
 
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
ERiCDistanceFunction.Instance(Relation<V> database, FilteredLocalPCAIndex<V> index, ERiCDistanceFunction parent, double delta, double tau)
          Constructor.
 
Method Summary
 BitDistance distance(DBID id1, DBID id2)
          Note, that the pca of o1 must have equal ore more strong eigenvectors than the pca of o2.
 
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.distance.distancefunction.IndexBasedDistanceFunction.Instance
getIndex
 
Methods inherited from interface de.lmu.ifi.dbs.elki.database.query.distance.DistanceQuery
distance, distance, distance, getDistanceFactory, getDistanceFunction, getRelation, infiniteDistance, nullDistance, undefinedDistance
 

Field Detail

delta

private final double delta
Holds the value of ERiCDistanceFunction.DELTA_ID.


tau

private final double tau
Holds the value of ERiCDistanceFunction.TAU_ID.

Constructor Detail

ERiCDistanceFunction.Instance

public ERiCDistanceFunction.Instance(Relation<V> database,
                                     FilteredLocalPCAIndex<V> index,
                                     ERiCDistanceFunction parent,
                                     double delta,
                                     double tau)
Constructor.

Parameters:
database - Database
index - Index
parent - Parent distance
delta - Delta parameter
tau - Tau parameter
Method Detail

distance

public BitDistance distance(DBID id1,
                            DBID id2)
Note, that the pca of o1 must have equal ore more strong eigenvectors than the pca of o2.

Specified by:
distance in interface DistanceQuery<V extends NumberVector<?,?>,BitDistance>
Specified by:
distance in class AbstractDistanceQuery<V extends NumberVector<?,?>,BitDistance>
Parameters:
id1 - first object id
id2 - second object id
Returns:
the distance between the two objects specified by their object ids

Release 0.4.0 (2011-09-20_1324)