![]() |
Ice Sheet System Model
4.18
Code documentation
|
Public Member Functions | |
CoverTreeNode (const Observation &o) | |
void | addChild (int level, CoverTreeNode *p) |
void | addObservation (const Observation &o) |
double | distance (const CoverTreeNode &p) const |
bool | isSingle () const |
bool | hasObservation (const Observation &o) const |
std::vector< CoverTreeNode * > | getChildren (int level) const |
const Observation & | getObservation () const |
const std::vector< Observation > & | getObservations () |
void | removeChild (int level, CoverTreeNode *p) |
void | removeObservation (const Observation &o) |
std::vector< CoverTreeNode * > | getAllChildren () const |
Private Attributes | |
std::map< int, std::vector< CoverTreeNode * > > | _childMap |
std::vector< Observation > | _observations |
Definition at line 12 of file Covertree.h.
Covertree::CoverTreeNode::CoverTreeNode | ( | const Observation & | o | ) |
Definition at line 342 of file Covertree.cpp.
void Covertree::CoverTreeNode::addChild | ( | int | level, |
CoverTreeNode * | p | ||
) |
Returns the children of the node at level i. Note that this means the children exist in cover set i-1, not level i.
Does not include the node itself, though technically every node has itself as a child in a cover tree.
Definition at line 335 of file Covertree.cpp.
void Covertree::CoverTreeNode::addObservation | ( | const Observation & | o | ) |
Definition at line 338 of file Covertree.cpp.
double Covertree::CoverTreeNode::distance | ( | const CoverTreeNode & | p | ) | const |
Definition at line 345 of file Covertree.cpp.
bool Covertree::CoverTreeNode::isSingle | ( | ) | const |
Definition at line 373 of file Covertree.cpp.
bool Covertree::CoverTreeNode::hasObservation | ( | const Observation & | o | ) | const |
Definition at line 370 of file Covertree.cpp.
std::vector< Covertree::CoverTreeNode * > Covertree::CoverTreeNode::getChildren | ( | int | level | ) | const |
Definition at line 356 of file Covertree.cpp.
const Observation & Covertree::CoverTreeNode::getObservation | ( | ) | const |
Definition at line 364 of file Covertree.cpp.
|
inline |
Definition at line 34 of file Covertree.h.
void Covertree::CoverTreeNode::removeChild | ( | int | level, |
CoverTreeNode * | p | ||
) |
Definition at line 415 of file Covertree.cpp.
void Covertree::CoverTreeNode::removeObservation | ( | const Observation & | o | ) |
Definition at line 425 of file Covertree.cpp.
std::vector< Covertree::CoverTreeNode * > Covertree::CoverTreeNode::getAllChildren | ( | ) | const |
Return every child of the node from any level. This is handy for the destructor.
Definition at line 348 of file Covertree.cpp.
|
private |
Definition at line 15 of file Covertree.h.
|
private |
Definition at line 17 of file Covertree.h.