V
- the type of NumberVector to compute the distances in betweenpublic static class HiSCDistanceFunction.Instance<V extends NumberVector<?,?>> extends AbstractPreferenceVectorBasedCorrelationDistanceFunction.Instance<V,HiSCPreferenceVectorIndex<V>>
epsilon
index, parent
relation
HINT_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, weightedPrefereneceVectorDistance
getDistanceFunction, getIndex
distance, distance, distance
getDistanceFactory, infiniteDistance, nullDistance, undefinedDistance
getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
distance, distance, distance, getDistanceFactory, getRelation, infiniteDistance, nullDistance, undefinedDistance
public 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