
tree.
Definition at line 24 of file KDTreeNode.hpp.
Public Member Functions | |
| KDTreeNode () | |
| Default constructor. | |
| KDTreeNode (DiracMixturePdf *p, unsigned int i, unsigned int depth) | |
| Construct leaf node. | |
| KDTreeNode (DiracMixturePdf *p, const std::vector< unsigned int > &is, const unsigned int depth) | |
| Construct prune node. | |
| KDTreeNode (KDTreeNode *left, KDTreeNode *right, const unsigned int depth) | |
| Construct internal node. | |
| KDTreeNode (const KDTreeNode &o) | |
| Copy constructor. | |
| virtual | ~KDTreeNode () |
| Destructor. | |
| KDTreeNode & | operator= (const KDTreeNode &o) |
| Assignment operator. | |
| virtual PartitionTreeNode * | clone () const |
| Clone node. | |
| const vector * | getLower () const |
| Get lower bound on the node. | |
| const vector * | getUpper () const |
| Get upper bound on the node. | |
| virtual void | difference (const vector &x, vector &result) const |
| Find the coordinate difference of the node from a single point. | |
| virtual void | difference (const PartitionTreeNode &node, vector &result) const |
| Find the coordinate difference of the node from another node. | |
| KDTreeNode | ( | ) |
Default constructor.
This should generally only be used when the object is to be restored from a serialization.
Definition at line 5 of file KDTreeNode.cpp.
| KDTreeNode | ( | DiracMixturePdf * | p, | |
| unsigned int | i, | |||
| unsigned int | depth | |||
| ) |
Construct leaf node.
| p | Weighted sample set. | |
| i | Index of component in the weighted sample set. | |
| depth | Depth of the node in the tree. |
Definition at line 10 of file KDTreeNode.cpp.
| KDTreeNode | ( | DiracMixturePdf * | p, | |
| const std::vector< unsigned int > & | is, | |||
| const unsigned int | depth | |||
| ) |
Construct prune node.
| p | Weighted sample set. | |
| is | Indices of components in the weighted sample set. | |
| depth | Depth of the node in the tree. |
Definition at line 18 of file KDTreeNode.cpp.
| KDTreeNode | ( | KDTreeNode * | left, | |
| KDTreeNode * | right, | |||
| const unsigned int | depth | |||
| ) |
Construct internal node.
| left | Left child node. Caller releases ownership. | |
| right | Right child node. Caller releases ownership. | |
| depth | Depth of the node in the tree. |
Definition at line 49 of file KDTreeNode.cpp.
| KDTreeNode | ( | const KDTreeNode & | o | ) |
| ~KDTreeNode | ( | ) | [virtual] |
| KDTreeNode & operator= | ( | const KDTreeNode & | o | ) |
| PartitionTreeNode * clone | ( | ) | const [virtual] |
Clone node.
Implements PartitionTreeNode.
Definition at line 224 of file KDTreeNode.cpp.
| const indii::ml::aux::vector * getLower | ( | ) | const [inline] |
| const indii::ml::aux::vector * getUpper | ( | ) | const [inline] |
Find the coordinate difference of the node from a single point.
| x | Query point. | |
| result | After return, difference between the query point and the nearest point within the volume contained by the node. |
Implements PartitionTreeNode.
Definition at line 238 of file KDTreeNode.cpp.
| void difference | ( | const PartitionTreeNode & | node, | |
| vector & | result | |||
| ) | const [virtual] |
Find the coordinate difference of the node from another node.
| node | Query node. | |
| result | After return, difference between the closest two points in the volumes contained by the nodes. |
Implements PartitionTreeNode.
Definition at line 263 of file KDTreeNode.cpp.
1.5.3