
public static class LocalSubspaceDistanceFunction.Instance<V extends NumberVector<?>> extends AbstractIndexBasedDistanceFunction.Instance<V,FilteredLocalPCAIndex<V>,SubspaceDistance,LocalSubspaceDistanceFunction> implements FilteredLocalPCABasedDistanceFunction.Instance<V,FilteredLocalPCAIndex<V>,SubspaceDistance>
index, parentrelationHINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE| Constructor and Description |
|---|
LocalSubspaceDistanceFunction.Instance(Relation<V> database,
FilteredLocalPCAIndex<V> index,
LocalSubspaceDistanceFunction distanceFunction) |
| Modifier and Type | Method and Description |
|---|---|
SubspaceDistance |
distance(DBIDRef id1,
DBIDRef id2)
Note, that the pca of o1 must have equal ore more strong eigenvectors
than the pca of o2.
|
SubspaceDistance |
distance(V o1,
V o2,
PCAFilteredResult pca1,
PCAFilteredResult pca2)
Computes the distance between two given DatabaseObjects according to this
distance function.
|
getDistanceFunction, getIndexdistance, distance, distancegetDistanceFactory, infiniteDistance, nullDistance, undefinedDistancegetRelationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIndexdistance, distance, distance, getDistanceFactory, getDistanceFunction, getRelation, infiniteDistance, nullDistance, undefinedDistancepublic LocalSubspaceDistanceFunction.Instance(Relation<V> database, FilteredLocalPCAIndex<V> index, LocalSubspaceDistanceFunction distanceFunction)
database - Databaseindex - Indexpublic SubspaceDistance distance(DBIDRef id1, DBIDRef id2)
distance in interface DistanceQuery<V extends NumberVector<?>,SubspaceDistance>distance in class AbstractDistanceQuery<V extends NumberVector<?>,SubspaceDistance>id1 - first object idid2 - second object idpublic SubspaceDistance distance(V o1, V o2, PCAFilteredResult pca1, PCAFilteredResult pca2)
o1 - first DatabaseObjecto2 - second DatabaseObjectpca1 - first PCApca2 - second PCA