SGNGAlgorithm Class Reference

Encapsulates the clustering part of the SGNG algorithm descibed by Fritzke. More...

#include <SGNGAlgorithm.hpp>

Inheritance diagram for SGNGAlgorithm:

GNGAlgorithm List of all members.

Public Member Functions

 SGNGAlgorithm (unsigned int MSEBackLog)
 Constructs a GNG Algorithm object.

void SetSquaredError (double d)
 Sets the squared error received from the RBF network.


Protected Member Functions

virtual void UpdateError (GNGNode &s)
 Updates the local error of a node with the current squared error from the RBF net.

virtual void PurgeEdges ()
 Removes edges that are too old.

virtual void MoveWinner (GNGNode &s)
 Moves the winner node s towards the current input vector by a factor of paramMoveWinner.

virtual void MoveNeighbor (GNGNode &s)
 Moves a neighbor node s towards the input vector by a factor of paramMoveNeighbor.

virtual double CalculateMeanDistance (GNGNode &s)
 Calculated the mean distance to all neigbours of node s.


Protected Attributes

double m_squaredError

Detailed Description

Encapsulates the clustering part of the SGNG algorithm descibed by Fritzke.

It is directly derived from GNGAlgorithm.


Constructor & Destructor Documentation

SGNGAlgorithm unsigned int  MSEBackLog  ) 
 

Constructs a GNG Algorithm object.


Member Function Documentation

void SetSquaredError double  d  ) 
 

Sets the squared error received from the RBF network.

Parameters:
d the squared error.

virtual void UpdateError GNGNode s  )  [protected, virtual]
 

Updates the local error of a node with the current squared error from the RBF net.

Parameters:
s the node that will be updated.

Reimplemented from GNGAlgorithm.

void PurgeEdges  )  [protected, virtual]
 

Removes edges that are too old.

and updates the widths of the nodes that shared an edges.

Reimplemented from GNGAlgorithm.

void MoveWinner GNGNode s  )  [protected, virtual]
 

Moves the winner node s towards the current input vector by a factor of paramMoveWinner.

Since the nodes have been moved, the mean distance to all neighbours must be updated. To change the behaviour of winner movment, overload this method.

Parameters:
s the node to move

Reimplemented from GNGAlgorithm.

void MoveNeighbor GNGNode s  )  [protected, virtual]
 

Moves a neighbor node s towards the input vector by a factor of paramMoveNeighbor.

To change the behaviour of neighbor movment, overload this method. Since the nodes have been moved, the mean distance to all neighbours must be updated.

Parameters:
s the node to move

Reimplemented from GNGAlgorithm.

double CalculateMeanDistance GNGNode s  )  [protected, virtual]
 

Calculated the mean distance to all neigbours of node s.

Parameters:
s a node
Returns:
the mean distance to the neighbours of s.


Member Data Documentation

double m_squaredError [protected]
 


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