public class PCABasedCorrelationDistanceFunction extends AbstractIndexBasedDistanceFunction<NumberVector<?>,FilteredLocalPCAIndex<NumberVector<?>>,PCACorrelationDistance> implements FilteredLocalPCABasedDistanceFunction<NumberVector<?>,FilteredLocalPCAIndex<NumberVector<?>>,PCACorrelationDistance>
Modifier and Type | Class and Description |
---|---|
static class |
PCABasedCorrelationDistanceFunction.Instance<V extends NumberVector<?>>
The actual instance bound to a particular database.
|
static class |
PCABasedCorrelationDistanceFunction.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private double |
delta
Holds the value of
DELTA_ID . |
static OptionID |
DELTA_ID
Parameter to specify the threshold of a distance between a vector q and a
given space that indicates that q adds a new dimension to the space, must
be a double equal to or greater than 0.
|
indexFactory
INDEX_ID
Constructor and Description |
---|
PCABasedCorrelationDistanceFunction(IndexFactory<NumberVector<?>,FilteredLocalPCAIndex<NumberVector<?>>> indexFactory,
double delta)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
PCACorrelationDistance |
getDistanceFactory()
Method to get the distance functions factory.
|
<T extends NumberVector<?>> |
instantiate(Relation<T> database)
Instantiate with a database to get the actual distance query.
|
getInputTypeRestriction, isMetric, isSymmetric
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInputTypeRestriction, isMetric, isSymmetric
public static final OptionID DELTA_ID
Default value: 0.25
Key: -pcabasedcorrelationdf.delta
private double delta
DELTA_ID
.public PCABasedCorrelationDistanceFunction(IndexFactory<NumberVector<?>,FilteredLocalPCAIndex<NumberVector<?>>> indexFactory, double delta)
indexFactory
- index factorydelta
- Delta parameterpublic PCACorrelationDistance getDistanceFactory()
DistanceFunction
getDistanceFactory
in interface DistanceFunction<NumberVector<?>,PCACorrelationDistance>
getDistanceFactory
in class AbstractDatabaseDistanceFunction<NumberVector<?>,PCACorrelationDistance>
public <T extends NumberVector<?>> PCABasedCorrelationDistanceFunction.Instance<T> instantiate(Relation<T> database)
FilteredLocalPCABasedDistanceFunction
instantiate
in interface DistanceFunction<NumberVector<?>,PCACorrelationDistance>
instantiate
in interface FilteredLocalPCABasedDistanceFunction<NumberVector<?>,FilteredLocalPCAIndex<NumberVector<?>>,PCACorrelationDistance>
database
- The representation to use