public abstract static class AbstractPreferenceVectorBasedCorrelationDistanceFunction.Instance<V extends NumberVector<?,?>,P extends PreferenceVectorIndex<V>> extends AbstractIndexBasedDistanceFunction.Instance<V,P,PreferenceVectorBasedCorrelationDistance,AbstractPreferenceVectorBasedCorrelationDistanceFunction<? super V,?>>
Modifier and Type | Field and Description |
---|---|
(package private) double |
epsilon
The epsilon value
|
index, parent
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
AbstractPreferenceVectorBasedCorrelationDistanceFunction.Instance(Relation<V> database,
P preprocessor,
double epsilon,
AbstractPreferenceVectorBasedCorrelationDistanceFunction<? super V,?> distanceFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract 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.
|
PreferenceVectorBasedCorrelationDistance |
distance(DBIDRef id1,
DBIDRef id2)
Returns the distance between the two objects specified by their object ids.
|
double |
weightedDistance(DBID id1,
DBID id2,
BitSet weightVector)
Computes the weighted distance between the two specified vectors
according to the given preference vector.
|
double |
weightedDistance(V v1,
V v2,
BitSet weightVector)
Computes the weighted distance between the two specified vectors
according to the given preference vector.
|
double |
weightedPrefereneceVectorDistance(DBID id1,
DBID id2)
Computes the weighted distance between the two specified data vectors
according to their preference vectors.
|
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 AbstractPreferenceVectorBasedCorrelationDistanceFunction.Instance(Relation<V> database, P preprocessor, double epsilon, AbstractPreferenceVectorBasedCorrelationDistanceFunction<? super V,?> distanceFunction)
database
- Databasepreprocessor
- Preprocessorepsilon
- EpsilondistanceFunction
- parent distance functionpublic PreferenceVectorBasedCorrelationDistance distance(DBIDRef id1, DBIDRef id2)
AbstractDistanceQuery
distance
in interface DistanceQuery<V extends NumberVector<?,?>,PreferenceVectorBasedCorrelationDistance>
distance
in class AbstractDistanceQuery<V extends NumberVector<?,?>,PreferenceVectorBasedCorrelationDistance>
id1
- first object idid2
- second object idpublic abstract PreferenceVectorBasedCorrelationDistance correlationDistance(V v1, V v2, BitSet pv1, BitSet pv2)
v1
- first vectorv2
- second vectorpv1
- the first preference vectorpv2
- the second preference vectorpublic double weightedDistance(V v1, V v2, BitSet weightVector)
v1
- the first vectorv2
- the second vectorweightVector
- the preference vectorpublic double weightedDistance(DBID id1, DBID id2, BitSet weightVector)
id1
- the id of the first vectorid2
- the id of the second vectorweightVector
- the preference vectorpublic double weightedPrefereneceVectorDistance(DBID id1, DBID id2)
id1
- the id of the first vectorid2
- the id of the second vector