public class SubspaceDistanceFunction extends AbstractIndexBasedDistanceFunction<NumberVector<?,?>,FilteredLocalPCAIndex<NumberVector<?,?>>,SubspaceDistance> implements FilteredLocalPCABasedDistanceFunction<NumberVector<?,?>,FilteredLocalPCAIndex<NumberVector<?,?>>,SubspaceDistance>
Modifier and Type | Class and Description |
---|---|
static class |
SubspaceDistanceFunction.Instance<V extends NumberVector<?,?>>
The actual instance bound to a particular database.
|
static class |
SubspaceDistanceFunction.Parameterizer
Parameterization class.
|
indexFactory
INDEX_ID
Constructor and Description |
---|
SubspaceDistanceFunction(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 SubspaceDistanceFunction(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<?,?>> SubspaceDistanceFunction.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