public static class ERiCDistanceFunction.Instance<V extends NumberVector<?,?>> extends AbstractIndexBasedDistanceFunction.Instance<V,FilteredLocalPCAIndex<V>,BitDistance,ERiCDistanceFunction> implements FilteredLocalPCABasedDistanceFunction.Instance<V,FilteredLocalPCAIndex<V>,BitDistance>
Modifier and Type | Field and Description |
---|---|
private double |
delta
Holds the value of
ERiCDistanceFunction.DELTA_ID . |
private double |
tau
Holds the value of
ERiCDistanceFunction.TAU_ID . |
index, parent
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
ERiCDistanceFunction.Instance(Relation<V> database,
FilteredLocalPCAIndex<V> index,
ERiCDistanceFunction parent,
double delta,
double tau)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
BitDistance |
distance(DBIDRef id1,
DBIDRef id2)
Note, that the pca of o1 must have equal ore more strong eigenvectors
than the pca of o2.
|
getDistanceFunction, getIndex
distance, distance, distance
getDistanceFactory, infiniteDistance, nullDistance, undefinedDistance
getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIndex
distance, distance, distance, getDistanceFactory, getDistanceFunction, getRelation, infiniteDistance, nullDistance, undefinedDistance
private final double delta
ERiCDistanceFunction.DELTA_ID
.private final double tau
ERiCDistanceFunction.TAU_ID
.public ERiCDistanceFunction.Instance(Relation<V> database, FilteredLocalPCAIndex<V> index, ERiCDistanceFunction parent, double delta, double tau)
database
- Databaseindex
- Indexparent
- Parent distancedelta
- Delta parametertau
- Tau parameterpublic BitDistance distance(DBIDRef id1, DBIDRef id2)
distance
in interface DistanceQuery<V extends NumberVector<?,?>,BitDistance>
distance
in class AbstractDistanceQuery<V extends NumberVector<?,?>,BitDistance>
id1
- first object idid2
- second object id