public static class DiSHDistanceFunction.Instance<V extends NumberVector<?>> extends AbstractPreferenceVectorBasedCorrelationDistanceFunction.Instance<V,DiSHPreferenceVectorIndex<V>>
epsilon
index, parent
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
DiSHDistanceFunction.Instance(Relation<V> database,
DiSHPreferenceVectorIndex<V> index,
double epsilon,
DiSHDistanceFunction 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 DiSHDistanceFunction.Instance(Relation<V> database, DiSHPreferenceVectorIndex<V> index, double epsilon, DiSHDistanceFunction 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<?>,DiSHPreferenceVectorIndex<V extends NumberVector<?>>>
v1
- first vectorv2
- second vectorpv1
- the first preference vectorpv2
- the second preference vector