O
- the type of DatabaseObject to be stored 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,N extends AbstractMTreeNode<O,N,E>,E extends MTreeEntry,S extends MTreeSettings<O,N,E>> extends AbstractMTree<O,N,E,S>
AbstractMTree.Statistics
Modifier and Type | Field and Description |
---|---|
private DistanceQuery<O> |
distanceQuery
Distance query to use.
|
protected KNNQuery<O> |
knnq
Internal class for performing knn queries
|
EXTRA_INTEGRITY_CHECKS, settings, statistics
dirCapacity, 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> |
batchNN(N node,
DBIDs ids,
int kmax)
Deprecated.
Change to use by-object NN lookups instead.
|
double |
distance(DBIDRef id1,
DBIDRef id2)
Returns the distance between the two specified ids.
|
abstract DoubleDBIDList |
reverseKNNQuery(DBIDRef id,
int k)
Performs a reverse k-nearest neighbor query for the given object ID.
|
createEmptyRoot, createNewDirectoryEntry, distance, getDistanceFunction, getHeight, getLeaves, getSortedEntries, insert, insertAll, logStatistics, toString
createHeader, createNewDirectoryNode, createNewLeafNode, createRootEntry, deleteNode, getFile, getLogger, getNode, getNode, getPageID, getPageSize, getRoot, getRootEntry, getRootID, getRootPath, initialize, initialize, initializeCapacities, initializeFromFile, isRoot, postDelete, preInsert, writeNode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLongName, getShortName
private DistanceQuery<O> distanceQuery
public double distance(DBIDRef id1, DBIDRef id2)
AbstractMTree
distance
in class AbstractMTree<O,N extends AbstractMTreeNode<O,N,E>,E extends MTreeEntry,S extends MTreeSettings<O,N,E>>
id1
- the first idid2
- the second idpublic abstract DoubleDBIDList reverseKNNQuery(DBIDRef id, int k)
id
- the query object idk
- the number of nearest neighbors to be returned@Deprecated protected final Map<DBID,KNNList> 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 valueCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.