de.lmu.ifi.dbs.elki.distance.distancefunction.correlation
Class ERiCDistanceFunction.Instance<V extends NumberVector<?,?>>
java.lang.Object
de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery<O>
de.lmu.ifi.dbs.elki.database.query.distance.AbstractDistanceQuery<O,D>
de.lmu.ifi.dbs.elki.database.query.distance.AbstractDatabaseDistanceQuery<O,D>
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractIndexBasedDistanceFunction.Instance<V,FilteredLocalPCAIndex<V>,BitDistance,ERiCDistanceFunction>
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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
delta
private final double delta
- Holds the value of
ERiCDistanceFunction.DELTA_ID
.
tau
private final double tau
- Holds the value of
ERiCDistanceFunction.TAU_ID
.
ERiCDistanceFunction.Instance
public ERiCDistanceFunction.Instance(Relation<V> database,
FilteredLocalPCAIndex<V> index,
ERiCDistanceFunction parent,
double delta,
double tau)
- Constructor.
- Parameters:
database
- Databaseindex
- Indexparent
- Parent distancedelta
- Delta parametertau
- Tau parameter
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 idid2
- second object id
- Returns:
- the distance between the two objects specified by their object ids