
O - the type of DatabaseObject to be stored in the metrical indexD - the type of Distance used in the metrical indexN - the type of MetricalNode used in the metrical indexE - the type of MetricalEntry used in the metrical indexS - the type of Settings kept.public abstract class AbstractMkTree<O,D extends NumberDistance<D,?>,N extends AbstractMTreeNode<O,D,N,E>,E extends MTreeEntry,S extends MTreeSettings<O,D,N,E>> extends AbstractMTree<O,D,N,E,S>
AbstractMTree.Statistics| Modifier and Type | Field and Description | 
|---|---|
private DistanceQuery<O,D> | 
distanceQuery
Distance query to use. 
 | 
protected KNNQuery<O,D> | 
knnq
Internal class for performing knn queries 
 | 
EXTRA_INTEGRITY_CHECKS, settings, statisticsdirCapacity, dirMinimum, initialized, leafCapacity, leafMinimum| Constructor and Description | 
|---|
AbstractMkTree(Relation<O> relation,
              PageFile<N> pagefile,
              S settings)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected Map<DBID,KNNList<D>> | 
batchNN(N node,
       DBIDs ids,
       int kmax)
Deprecated. 
 
Change to use by-object NN lookups instead. 
 | 
D | 
distance(DBIDRef id1,
        DBIDRef id2)
Returns the distance between the two specified ids. 
 | 
abstract DistanceDBIDList<D> | 
reverseKNNQuery(DBIDRef id,
               int k)
Performs a reverse k-nearest neighbor query for the given object ID. 
 | 
createEmptyRoot, createNewDirectoryEntry, distance, getDistanceFactory, getDistanceFunction, getHeight, getLeaves, getSortedEntries, insert, insertAll, logStatistics, toStringcreateHeader, createNewDirectoryNode, createNewLeafNode, createRootEntry, deleteNode, getFile, getLogger, getNode, getNode, getPageID, getPageSize, getRoot, getRootEntry, getRootID, getRootPath, initialize, initialize, initializeCapacities, initializeFromFile, isRoot, postDelete, preInsert, writeNodeprotected KNNQuery<O,D extends NumberDistance<D,?>> knnq
private DistanceQuery<O,D extends NumberDistance<D,?>> distanceQuery
public D distance(DBIDRef id1, DBIDRef id2)
AbstractMTreedistance in class AbstractMTree<O,D extends NumberDistance<D,?>,N extends AbstractMTreeNode<O,D,N,E>,E extends MTreeEntry,S extends MTreeSettings<O,D,N,E>>id1 - the first idid2 - the second idpublic abstract DistanceDBIDList<D> reverseKNNQuery(DBIDRef id, int k)
id - the query object idk - the number of nearest neighbors to be returned@Deprecated protected final Map<DBID,KNNList<D>> batchNN(N node, DBIDs ids, int kmax)
node - the node representing the subtree on which the query should be
        performedids - the ids of the query objectskmax - Maximum k value