#include <DefaultNodeInserter.hpp>
Inheritance diagram for DefaultNodeInserter:
Public Member Functions | |
DefaultNodeInserter () | |
virtual void | SetGNGContainer (IGNGContainer *c) |
Sets the IGNGContainer component of DefaultNodeInserter. | |
virtual bool | IsInsertCriteriaMet () |
Checks if the insert new node criteria is met. | |
virtual void | InsertNewNode () |
Inserts a new Node, at the apropriate postition. | |
void | SetParamInsertEvery (unsigned int i) |
Sets the InsertEvery parameter. | |
void | SetParamMaxNodes (unsigned int i) |
Sets the MaxNodes parameter. | |
void | SetParamNewNodePos (double i) |
Sets the NewNodePos parameter. | |
void | SetParamErrorDecay (double i) |
Sets the ErrorDecay parameter. | |
Protected Member Functions | |
virtual GNGNode * | FindNodeWithLargestError () |
Finds the Node U with the largest local error. | |
virtual GNGNode * | FindNeighborWithLargestError (GNGNode const &u) |
Finds the Neighbor V of node U with the largest error. | |
virtual double | NewError (double errorU, double errorV) |
Defines how the new error is initialized for the new node. | |
Protected Attributes | |
unsigned int | m_iteration |
unsigned int | m_paramInsertEvery |
unsigned int | m_paramMaxNodes |
double | m_paramNewNodePos |
double | m_paramErrorDecay |
IGNGContainer * | m_container |
|
|
|
Sets the IGNGContainer component of DefaultNodeInserter. It is used to create edges and nodes. It is the actual container of the nodes and edges.
Implements IGNGNodeInserter. |
|
Checks if the insert new node criteria is met.
Implements IGNGNodeInserter. |
|
Inserts a new Node, at the apropriate postition. The IGNGContainer component managed nodes and edges and is used to create them. Implements IGNGNodeInserter. Reimplemented in SGNGNodeInserter. |
|
Sets the InsertEvery parameter. It controls the frequency of insertions.
|
|
Sets the MaxNodes parameter. It controls how many nodes are allowed to be created.
|
|
Sets the NewNodePos parameter. It controls the interpolation between the two most erroneous nodes U and V. It should be a value between 0.0 and 1.0. 1.0 means the new node will be placed as far away from the most erroneous node U as possible, that is on the same spot as V. 0.0 means the new node will be placed in the same spot as U.
|
|
Sets the ErrorDecay parameter. It scales the local error of the nodes U and V with the hightst error after a new node has been inserted between U and V. It should be a value between 0.0 and 1.0. 1.0 leaves the error intact and 0.0 makes the error 0.0. |
|
Finds the Node U with the largest local error.
|
|
Finds the Neighbor V of node U with the largest error.
|
|
Defines how the new error is initialized for the new node.
|
|
|
|
|
|
|
|
|
|
|
|
|