de.lmu.ifi.dbs.elki.distance.distancefunction.subspace
Class SubspaceDistanceFunction
java.lang.Object
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDatabaseDistanceFunction<O,D>
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractIndexBasedDistanceFunction<NumberVector<?,?>,FilteredLocalPCAIndex<NumberVector<?,?>>,SubspaceDistance>
de.lmu.ifi.dbs.elki.distance.distancefunction.subspace.SubspaceDistanceFunction
- All Implemented Interfaces:
- DistanceFunction<NumberVector<?,?>,SubspaceDistance>, FilteredLocalPCABasedDistanceFunction<NumberVector<?,?>,FilteredLocalPCAIndex<NumberVector<?,?>>,SubspaceDistance>, IndexBasedDistanceFunction<NumberVector<?,?>,SubspaceDistance>, InspectionUtilFrequentlyScanned, Parameterizable
public class SubspaceDistanceFunction
- extends AbstractIndexBasedDistanceFunction<NumberVector<?,?>,FilteredLocalPCAIndex<NumberVector<?,?>>,SubspaceDistance>
- implements FilteredLocalPCABasedDistanceFunction<NumberVector<?,?>,FilteredLocalPCAIndex<NumberVector<?,?>>,SubspaceDistance>
Provides a distance function to determine a kind of correlation distance
between two points, which is a pair consisting of the distance between the
two subspaces spanned by the strong eigenvectors of the two points and the
affine distance between the two subspaces.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubspaceDistanceFunction
public SubspaceDistanceFunction(IndexFactory<NumberVector<?,?>,FilteredLocalPCAIndex<NumberVector<?,?>>> indexFactory)
- Constructor
- Parameters:
indexFactory
- Index factory
getDistanceFactory
public SubspaceDistance getDistanceFactory()
- Description copied from interface:
DistanceFunction
- Method to get the distance functions factory.
- Specified by:
getDistanceFactory
in interface DistanceFunction<NumberVector<?,?>,SubspaceDistance>
- Specified by:
getDistanceFactory
in class AbstractDatabaseDistanceFunction<NumberVector<?,?>,SubspaceDistance>
- Returns:
- Factory for distance objects
instantiate
public <V extends NumberVector<?,?>> SubspaceDistanceFunction.Instance<V> instantiate(Relation<V> database)
- Description copied from interface:
FilteredLocalPCABasedDistanceFunction
- Instantiate with a database to get the actual distance query.
- Specified by:
instantiate
in interface DistanceFunction<NumberVector<?,?>,SubspaceDistance>
- Specified by:
instantiate
in interface FilteredLocalPCABasedDistanceFunction<NumberVector<?,?>,FilteredLocalPCAIndex<NumberVector<?,?>>,SubspaceDistance>
- Parameters:
database
- The representation to use
- Returns:
- Actual distance query.