GClasses

GClasses::SOM::NodeLocationInitialization Class Reference

Way of initializing the node positions according to a given topology - for example: points on a grid, on a triangular lattice, or random points in space. More...

#include <GSelfOrganizingMap.h>

Inheritance diagram for GClasses::SOM::NodeLocationInitialization:
GClasses::SOM::GridTopology

List of all members.

Public Member Functions

virtual void setLocations (std::vector< double > outputAxesMax, std::vector< Node > &nodes)=0
 Initializes the locations in the given vector of nodes according to this topology and the maximum values of the output axes. If there are not enough nodes for the given topology, the node vector will be reallocated.
virtual ~NodeLocationInitialization ()
 Virtual destructor for good memory hygiene.

Detailed Description

Way of initializing the node positions according to a given topology - for example: points on a grid, on a triangular lattice, or random points in space.

outputAxesMax are taken to be non-negative numbers


Constructor & Destructor Documentation

virtual GClasses::SOM::NodeLocationInitialization::~NodeLocationInitialization ( ) [inline, virtual]

Virtual destructor for good memory hygiene.


Member Function Documentation

virtual void GClasses::SOM::NodeLocationInitialization::setLocations ( std::vector< double >  outputAxesMax,
std::vector< Node > &  nodes 
) [pure virtual]

Initializes the locations in the given vector of nodes according to this topology and the maximum values of the output axes. If there are not enough nodes for the given topology, the node vector will be reallocated.

Implemented in GClasses::SOM::GridTopology.