public class LocalSubspaceDistanceFunction extends AbstractIndexBasedDistanceFunction<NumberVector<?>,FilteredLocalPCAIndex<NumberVector<?>>,SubspaceDistance> implements FilteredLocalPCABasedDistanceFunction<NumberVector<?>,FilteredLocalPCAIndex<NumberVector<?>>,SubspaceDistance>
Modifier and Type | Class and Description |
---|---|
static class |
LocalSubspaceDistanceFunction.Instance<V extends NumberVector<?>>
The actual instance bound to a particular database.
|
static class |
LocalSubspaceDistanceFunction.Parameterizer
Parameterization class.
|
indexFactory
INDEX_ID
Constructor and Description |
---|
LocalSubspaceDistanceFunction(IndexFactory<NumberVector<?>,FilteredLocalPCAIndex<NumberVector<?>>> indexFactory)
Constructor
|
Modifier and Type | Method and Description |
---|---|
SubspaceDistance |
getDistanceFactory()
Method to get the distance functions factory.
|
<V extends NumberVector<?>> |
instantiate(Relation<V> database)
Instantiate with a database to get the actual distance query.
|
getInputTypeRestriction, isMetric, isSymmetric
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInputTypeRestriction, isMetric, isSymmetric
public LocalSubspaceDistanceFunction(IndexFactory<NumberVector<?>,FilteredLocalPCAIndex<NumberVector<?>>> indexFactory)
indexFactory
- Index factorypublic SubspaceDistance getDistanceFactory()
DistanceFunction
getDistanceFactory
in interface DistanceFunction<NumberVector<?>,SubspaceDistance>
getDistanceFactory
in class AbstractDatabaseDistanceFunction<NumberVector<?>,SubspaceDistance>
public <V extends NumberVector<?>> LocalSubspaceDistanceFunction.Instance<V> instantiate(Relation<V> database)
FilteredLocalPCABasedDistanceFunction
instantiate
in interface DistanceFunction<NumberVector<?>,SubspaceDistance>
instantiate
in interface FilteredLocalPCABasedDistanceFunction<NumberVector<?>,FilteredLocalPCAIndex<NumberVector<?>>,SubspaceDistance>
database
- The representation to use