GClasses
GClasses::SOM::NodeLocationInitialization Class Referenceabstract

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

#include <GSelfOrganizingMap.h>

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

Public Member Functions

virtual ~NodeLocationInitialization ()
 Virtual destructor for good memory hygiene. More...
 
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. More...
 

Constructor & Destructor Documentation

virtual GClasses::SOM::NodeLocationInitialization::~NodeLocationInitialization ( )
inlinevirtual

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.