de.lmu.ifi.dbs.elki.distance.distancefunction
Class LocallyWeightedDistanceFunction.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,LocalProjectionIndex<V,?>,DoubleDistance,LocallyWeightedDistanceFunction<? super V>>
                  extended by de.lmu.ifi.dbs.elki.distance.distancefunction.LocallyWeightedDistanceFunction.Instance<V>
All Implemented Interfaces:
DatabaseQuery, DistanceQuery<V,DoubleDistance>, FilteredLocalPCABasedDistanceFunction.Instance<V,LocalProjectionIndex<V,?>,DoubleDistance>, IndexBasedDistanceFunction.Instance<V,LocalProjectionIndex<V,?>,DoubleDistance>
Enclosing class:
LocallyWeightedDistanceFunction<V extends NumberVector<?,?>>

public static class LocallyWeightedDistanceFunction.Instance<V extends NumberVector<?,?>>
extends AbstractIndexBasedDistanceFunction.Instance<V,LocalProjectionIndex<V,?>,DoubleDistance,LocallyWeightedDistanceFunction<? super V>>
implements FilteredLocalPCABasedDistanceFunction.Instance<V,LocalProjectionIndex<V,?>,DoubleDistance>

Instance of this distance for a particular database.


Field Summary
 
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
LocallyWeightedDistanceFunction.Instance(Relation<V> database, LocalProjectionIndex<V,?> index, LocallyWeightedDistanceFunction<? super V> distanceFunction)
          Constructor.
 
Method Summary
 DoubleDistance centerDistance(SpatialComparable mbr1, SpatialComparable mbr2)
           
 DoubleDistance distance(DBID id1, DBID id2)
          Computes the distance between two given real vectors according to this distance function.
 DoubleDistance distance(SpatialComparable mbr1, SpatialComparable mbr2)
           
 DoubleDistance minDistBROKEN(SpatialComparable mbr, V v)
           
 
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
 

Constructor Detail

LocallyWeightedDistanceFunction.Instance

public LocallyWeightedDistanceFunction.Instance(Relation<V> database,
                                                LocalProjectionIndex<V,?> index,
                                                LocallyWeightedDistanceFunction<? super V> distanceFunction)
Constructor.

Parameters:
database - Database
index - Index
distanceFunction - Distance Function
Method Detail

distance

public DoubleDistance distance(DBID id1,
                               DBID id2)
Computes the distance between two given real vectors according to this distance function.

Specified by:
distance in interface DistanceQuery<V extends NumberVector<?,?>,DoubleDistance>
Specified by:
distance in class AbstractDistanceQuery<V extends NumberVector<?,?>,DoubleDistance>
Parameters:
id1 - first object id
id2 - second object id
Returns:
the distance between two given real vectors according to this distance function

minDistBROKEN

public DoubleDistance minDistBROKEN(SpatialComparable mbr,
                                    V v)

distance

public DoubleDistance distance(SpatialComparable mbr1,
                               SpatialComparable mbr2)

centerDistance

public DoubleDistance centerDistance(SpatialComparable mbr1,
                                     SpatialComparable mbr2)

Release 0.4.0 (2011-09-20_1324)