public static class SubspaceDistanceFunction.Instance<V extends NumberVector<?,?>> extends AbstractIndexBasedDistanceFunction.Instance<V,FilteredLocalPCAIndex<V>,SubspaceDistance,SubspaceDistanceFunction> implements FilteredLocalPCABasedDistanceFunction.Instance<V,FilteredLocalPCAIndex<V>,SubspaceDistance>
index, parent
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
SubspaceDistanceFunction.Instance(Relation<V> database,
FilteredLocalPCAIndex<V> index,
SubspaceDistanceFunction distanceFunction) |
Modifier and Type | Method and Description |
---|---|
SubspaceDistance |
distance(DBID id1,
DBID 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, getIndex
distance, distance, distance
getDistanceFactory, infiniteDistance, nullDistance, undefinedDistance
getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIndex
distance, distance, distance, getDistanceFactory, getDistanceFunction, getRelation, infiniteDistance, nullDistance, undefinedDistance
public SubspaceDistanceFunction.Instance(Relation<V> database, FilteredLocalPCAIndex<V> index, SubspaceDistanceFunction distanceFunction)
database
- Databaseindex
- Indexpublic SubspaceDistance distance(DBID id1, DBID 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