
V - the type of NumberVector to compute the distances in betweenpublic static class HiSCDistanceFunction.Instance<V extends NumberVector<?,?>> extends AbstractPreferenceVectorBasedCorrelationDistanceFunction.Instance<V,HiSCPreferenceVectorIndex<V>>
epsilonindex, parentrelationHINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE| Constructor and Description |
|---|
HiSCDistanceFunction.Instance(Relation<V> database,
HiSCPreferenceVectorIndex<V> index,
double epsilon,
HiSCDistanceFunction<? super V> distanceFunction)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
distance, weightedDistance, weightedDistance, weightedPrefereneceVectorDistancegetDistanceFunction, getIndexdistance, distance, distancegetDistanceFactory, infiniteDistance, nullDistance, undefinedDistancegetRelationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdistance, distance, distance, getDistanceFactory, getRelation, infiniteDistance, nullDistance, undefinedDistancepublic HiSCDistanceFunction.Instance(Relation<V> database, HiSCPreferenceVectorIndex<V> index, double epsilon, HiSCDistanceFunction<? super V> distanceFunction)
database - Databaseindex - Preprocessed indexepsilon - EpsilondistanceFunction - parent distance functionpublic PreferenceVectorBasedCorrelationDistance correlationDistance(V v1, V v2, BitSet pv1, BitSet pv2)
correlationDistance in class AbstractPreferenceVectorBasedCorrelationDistanceFunction.Instance<V extends NumberVector<?,?>,HiSCPreferenceVectorIndex<V extends NumberVector<?,?>>>v1 - first vectorv2 - second vectorpv1 - the first preference vectorpv2 - the second preference vector