de.lmu.ifi.dbs.elki.distance.distancefunction.subspace
Class DiSHDistanceFunction.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,P,PreferenceVectorBasedCorrelationDistance,AbstractPreferenceVectorBasedCorrelationDistanceFunction<? super V,?>>
de.lmu.ifi.dbs.elki.distance.distancefunction.subspace.AbstractPreferenceVectorBasedCorrelationDistanceFunction.Instance<V,DiSHPreferenceVectorIndex<V>>
de.lmu.ifi.dbs.elki.distance.distancefunction.subspace.DiSHDistanceFunction.Instance<V>
- All Implemented Interfaces:
- DatabaseQuery, DistanceQuery<V,PreferenceVectorBasedCorrelationDistance>, IndexBasedDistanceFunction.Instance<V,DiSHPreferenceVectorIndex<V>,PreferenceVectorBasedCorrelationDistance>
- Enclosing class:
- DiSHDistanceFunction
public static class DiSHDistanceFunction.Instance<V extends NumberVector<?,?>>
- extends AbstractPreferenceVectorBasedCorrelationDistanceFunction.Instance<V,DiSHPreferenceVectorIndex<V>>
The actual instance bound to a particular database.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiSHDistanceFunction.Instance
public DiSHDistanceFunction.Instance(Relation<V> database,
DiSHPreferenceVectorIndex<V> index,
double epsilon,
DiSHDistanceFunction distanceFunction)
- Constructor.
- Parameters:
database
- Databaseindex
- Preprocessed indexepsilon
- EpsilondistanceFunction
- parent distance function
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<?,?>,DiSHPreferenceVectorIndex<V extends NumberVector<?,?>>>
- Parameters:
v1
- first vectorv2
- second vectorpv1
- the first preference vectorpv2
- the second preference vector
- Returns:
- the correlation distance between the two specified vectors