de.lmu.ifi.dbs.elki.distance.distancefunction.subspace
Class HiSCDistanceFunction.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,HiSCPreferenceVectorIndex<V>>
de.lmu.ifi.dbs.elki.distance.distancefunction.subspace.HiSCDistanceFunction.Instance<V>
- Type Parameters:
V
- the type of NumberVector to compute the distances in between
- All Implemented Interfaces:
- DatabaseQuery, DistanceQuery<V,PreferenceVectorBasedCorrelationDistance>, IndexBasedDistanceFunction.Instance<V,HiSCPreferenceVectorIndex<V>,PreferenceVectorBasedCorrelationDistance>
- Enclosing class:
- HiSCDistanceFunction<V extends NumberVector<?,?>>
public static class HiSCDistanceFunction.Instance<V extends NumberVector<?,?>>
- extends AbstractPreferenceVectorBasedCorrelationDistanceFunction.Instance<V,HiSCPreferenceVectorIndex<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 |
HiSCDistanceFunction.Instance
public HiSCDistanceFunction.Instance(Relation<V> database,
HiSCPreferenceVectorIndex<V> index,
double epsilon,
HiSCDistanceFunction<? super V> 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<?,?>,HiSCPreferenceVectorIndex<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