O
- object typeclass MkCoPTreeNode<O> extends AbstractMTreeNode<O,MkCoPTreeNode<O>,MkCoPEntry>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
Serial version UID
|
entries, isLeaf, numEntries
Constructor and Description |
---|
MkCoPTreeNode()
Empty constructor for Externalizable interface.
|
MkCoPTreeNode(int capacity,
boolean isLeaf)
Creates a MkCoPTreeNode object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
adjustEntry(MkCoPEntry entry,
DBID routingObjectID,
double parentDistance,
AbstractMTree<O,MkCoPTreeNode<O>,MkCoPEntry,?> mTree)
Adjusts the parameters of the entry representing this node (e.g. after
insertion of new objects).
|
protected ApproximationLine |
conservativeKnnDistanceApproximation(int k_max)
Determines and returns the conservative approximation for the knn distances
of this node as the maximum of the conservative approximations of all
entries.
|
protected void |
integrityCheckParameters(MkCoPEntry parentEntry,
MkCoPTreeNode<O> parent,
int index,
AbstractMTree<O,MkCoPTreeNode<O>,MkCoPEntry,?> mTree)
Tests, if the parameters of the entry representing this node, are correctly
set.
|
protected ApproximationLine |
progressiveKnnDistanceApproximation(int k_max)
Determines and returns the progressive approximation for the knn distances
of this node as the maximum of the progressive approximations of all
entries.
|
coveringRadiusFromEntries, integrityCheck
addDirectoryEntry, addLeafEntry, children, deleteAllEntries, deleteEntry, equals, getCapacity, getEntries, getEntry, getNumEntries, isLeaf, readExternal, removeMask, splitByMask, splitTo, splitTo, toString, writeExternal
getPageID, hashCode, isDirty, setDirty, setPageID
private static final long serialVersionUID
public MkCoPTreeNode()
public MkCoPTreeNode(int capacity, boolean isLeaf)
capacity
- the capacity (maximum number of entries plus 1 for
overflow) of this nodeisLeaf
- indicates whether this node is a leaf nodeprotected ApproximationLine conservativeKnnDistanceApproximation(int k_max)
k_max
- the maximum k parameterprotected ApproximationLine progressiveKnnDistanceApproximation(int k_max)
k_max
- the maximum k parameterpublic boolean adjustEntry(MkCoPEntry entry, DBID routingObjectID, double parentDistance, AbstractMTree<O,MkCoPTreeNode<O>,MkCoPEntry,?> mTree)
AbstractMTreeNode
adjustEntry
in class AbstractMTreeNode<O,MkCoPTreeNode<O>,MkCoPEntry>
entry
- the entry representing this noderoutingObjectID
- the id of the (new) routing object of this nodeparentDistance
- the distance from the routing object of this node to
the routing object of the parent nodemTree
- the M-Tree object holding this nodetrue
if adjustment of parent is neededprotected void integrityCheckParameters(MkCoPEntry parentEntry, MkCoPTreeNode<O> parent, int index, AbstractMTree<O,MkCoPTreeNode<O>,MkCoPEntry,?> mTree)
AbstractMTreeNode
integrityCheckParameters
in class AbstractMTreeNode<O,MkCoPTreeNode<O>,MkCoPEntry>
parentEntry
- the entry representing the parentparent
- the parent holding the entry representing this nodeindex
- the index of the entry in the parents child arrymTree
- the M-Tree holding this nodeCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.