de.lmu.ifi.dbs.elki.distance.distancefunction.subspace
Class SubspaceDistanceFunction.Instance<V extends NumberVector<?,?>>
java.lang.Object
de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery<O>
de.lmu.ifi.dbs.elki.database.query.distance.AbstractDistanceQuery<O,D>
de.lmu.ifi.dbs.elki.database.query.distance.AbstractDatabaseDistanceQuery<O,D>
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractIndexBasedDistanceFunction.Instance<V,FilteredLocalPCAIndex<V>,SubspaceDistance,SubspaceDistanceFunction>
de.lmu.ifi.dbs.elki.distance.distancefunction.subspace.SubspaceDistanceFunction.Instance<V>
- All Implemented Interfaces:
- DatabaseQuery, DistanceQuery<V,SubspaceDistance>, FilteredLocalPCABasedDistanceFunction.Instance<V,FilteredLocalPCAIndex<V>,SubspaceDistance>, IndexBasedDistanceFunction.Instance<V,FilteredLocalPCAIndex<V>,SubspaceDistance>
- Enclosing class:
- SubspaceDistanceFunction
public static class SubspaceDistanceFunction.Instance<V extends NumberVector<?,?>>
- extends AbstractIndexBasedDistanceFunction.Instance<V,FilteredLocalPCAIndex<V>,SubspaceDistance,SubspaceDistanceFunction>
- implements FilteredLocalPCABasedDistanceFunction.Instance<V,FilteredLocalPCAIndex<V>,SubspaceDistance>
The actual instance bound to a particular database.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubspaceDistanceFunction.Instance
public SubspaceDistanceFunction.Instance(Relation<V> database,
FilteredLocalPCAIndex<V> index,
SubspaceDistanceFunction distanceFunction)
- Parameters:
database
- Databaseindex
- Index
distance
public SubspaceDistance distance(DBID id1,
DBID id2)
- Note, that the pca of o1 must have equal ore more strong eigenvectors
than the pca of o2.
- Specified by:
distance
in interface DistanceQuery<V extends NumberVector<?,?>,SubspaceDistance>
- Specified by:
distance
in class AbstractDistanceQuery<V extends NumberVector<?,?>,SubspaceDistance>
- Parameters:
id1
- first object idid2
- second object id
- Returns:
- the distance between the two objects specified by their object ids
distance
public SubspaceDistance distance(V o1,
V o2,
PCAFilteredResult pca1,
PCAFilteredResult pca2)
- Computes the distance between two given DatabaseObjects according to this
distance function. Note, that the first pca must have an equal number of
strong eigenvectors than the second pca.
- Parameters:
o1
- first DatabaseObjecto2
- second DatabaseObjectpca1
- first PCApca2
- second PCA
- Returns:
- the distance between two given DatabaseObjects according to this
distance function