GNGNode Class Reference

Represents a node in the GNG algorithm contains a reference vector, a collection of edge-references and a local accumulated error. More...

#include <GNGNode.hpp>

Inheritance diagram for GNGNode:

RBFNode List of all members.

Public Member Functions

 GNGNode ()
virtual ~GNGNode ()
virtual void SetReferenceVector (Vector const &referenceVector)
 Sets the Reference Vector of the node.

virtual VectorGetReferenceVector ()
 Gets a non-const reference to the Reference Vector.

virtual Vector const & GetReferenceVector () const
 Gets a const reference to the Reference Vector.

virtual void SetAccumulatedError (double d)
 Sets the accumulated error of the node.

virtual double GetAccumulatedError () const
 Gets the accumulated error of the node.

virtual void SetUtility (double d)
 Sets the utility (used by GNG-U) of the node.

virtual double GetUtility () const
 Gets the utility of the node.

virtual void AddEdge (GNGEdge &edge)
 Registers a reference to a GNGEdge with this node.

virtual void RemoveEdge (GNGEdge const &edge)
 Unregisters the reference to a GNGEdge with this node.

virtual GNGEdgeGetEdgeTo (GNGNode const &node)
 Gets a pointer to an Edge if this node is connected to .

virtual EdgeContainer const & GetEdges () const
 Gets a constant reference to the Edges of this node.

virtual EdgeContainerGetEdges ()
 Gets a reference to the Edges of this node.


Protected Attributes

Vector m_referenceVector
EdgeContainer m_edges
double m_accumulatedError
double m_utility

Detailed Description

Represents a node in the GNG algorithm contains a reference vector, a collection of edge-references and a local accumulated error.

( and a utility ) GNGNode does not assume ownership of the memory reserved by the edges it contains.


Constructor & Destructor Documentation

GNGNode  ) 
 

~GNGNode  )  [virtual]
 


Member Function Documentation

void SetReferenceVector Vector const &  referenceVector  )  [virtual]
 

Sets the Reference Vector of the node.

Parameters:
referenceVector The reference Vector.

Vector & GetReferenceVector  )  [virtual]
 

Gets a non-const reference to the Reference Vector.

Returns:
the reference Vector ref.

Vector const & GetReferenceVector  )  const [virtual]
 

Gets a const reference to the Reference Vector.

Returns:
the reference Vector ref.

void SetAccumulatedError double  d  )  [virtual]
 

Sets the accumulated error of the node.

Parameters:
d the accumulated error.

double GetAccumulatedError  )  const [virtual]
 

Gets the accumulated error of the node.

Returns:
the accumulated error.

void SetUtility double  d  )  [virtual]
 

Sets the utility (used by GNG-U) of the node.

Parameters:
d the utility.

double GetUtility  )  const [virtual]
 

Gets the utility of the node.

Returns:
the utility.

void AddEdge GNGEdge edge  )  [virtual]
 

Registers a reference to a GNGEdge with this node.

Parameters:
edge The edge to add.

void RemoveEdge GNGEdge const &  edge  )  [virtual]
 

Unregisters the reference to a GNGEdge with this node.

Parameters:
edge The edge to remove.

GNGEdge * GetEdgeTo GNGNode const &  node  )  [virtual]
 

Gets a pointer to an Edge if this node is connected to .

Parameters:
node The node to which this node might be connected.
Returns:
a pointer to the GNGEdge if the nodes are connected and null-pointer if not.

EdgeContainer const & GetEdges  )  const [virtual]
 

Gets a constant reference to the Edges of this node.

Returns:
the reference to this nodes edges.

EdgeContainer & GetEdges  )  [virtual]
 

Gets a reference to the Edges of this node.

Returns:
the reference to this nodes edges.


Member Data Documentation

Vector m_referenceVector [protected]
 

EdgeContainer m_edges [protected]
 

double m_accumulatedError [protected]
 

double m_utility [protected]
 


Generated on Mon Mar 22 16:40:49 2004 for GNG_GL by doxygen 1.3.6