V
- the type of NumberVector to compute the distances in betweenP
- the type of Preprocessor usedpublic abstract class AbstractPreferenceVectorBasedCorrelationDistanceFunction<V extends NumberVector<?,?>,P extends PreferenceVectorIndex<V>> extends AbstractIndexBasedDistanceFunction<V,P,PreferenceVectorBasedCorrelationDistance>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractPreferenceVectorBasedCorrelationDistanceFunction.Instance<V extends NumberVector<?,?>,P extends PreferenceVectorIndex<V>>
Instance to compute the distances on an actual database.
|
static class |
AbstractPreferenceVectorBasedCorrelationDistanceFunction.Parameterizer<F extends IndexFactory<?,?>>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private double |
epsilon
Holds the value of
EPSILON_ID . |
static OptionID |
EPSILON_ID
Parameter to specify the maximum distance between two vectors with equal
preference vectors before considering them as parallel, must be a double
equal to or greater than 0.
|
indexFactory
INDEX_ID
Constructor and Description |
---|
AbstractPreferenceVectorBasedCorrelationDistanceFunction(IndexFactory<V,P> indexFactory,
double epsilon)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
PreferenceVectorBasedCorrelationDistance |
getDistanceFactory()
Method to get the distance functions factory.
|
double |
getEpsilon()
Returns epsilon.
|
getInputTypeRestriction, isMetric, isSymmetric
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
instantiate
public static final OptionID EPSILON_ID
Default value: 0.001
Key: -pvbasedcorrelationdf.epsilon
private double epsilon
EPSILON_ID
.public AbstractPreferenceVectorBasedCorrelationDistanceFunction(IndexFactory<V,P> indexFactory, double epsilon)
indexFactory
- Index factoryepsilon
- Epsilon valuepublic PreferenceVectorBasedCorrelationDistance getDistanceFactory()
DistanceFunction
getDistanceFactory
in interface DistanceFunction<V extends NumberVector<?,?>,PreferenceVectorBasedCorrelationDistance>
getDistanceFactory
in class AbstractDatabaseDistanceFunction<V extends NumberVector<?,?>,PreferenceVectorBasedCorrelationDistance>
public double getEpsilon()