GClasses
GClasses::SOM::DummyTrainingAlgorithm Class Reference

Detailed Description

A training algorithm that throws an exception when train is called - stub for fully serializing training algorithms.

#include <GSelfOrganizingMap.h>

Inheritance diagram for GClasses::SOM::DummyTrainingAlgorithm:
GClasses::SOM::TrainingAlgorithm

Public Member Functions

 DummyTrainingAlgorithm ()
 Create a dummy training algorithm (and achieve whirled peas) More...
 
virtual ~DummyTrainingAlgorithm ()
 Destructor to ensure good memory hygiene. More...
 
virtual void train (GSelfOrganizingMap &map, const GMatrix *pIn)
 Throw error. More...
 
- Public Member Functions inherited from GClasses::SOM::TrainingAlgorithm
virtual ~TrainingAlgorithm ()
 Virtual destructor. More...
 
virtual GDomNodeserialize (GDom *pDoc) const
 Add this training algorithm to pDoc and return the resulting node Right now, default implementation is the only one there and it just adds an object with no fields. TODO: make serialize a pure virtual method and implement it in all the training algorithm subclasses. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from GClasses::SOM::TrainingAlgorithm
static TrainingAlgorithmdeserialize (const GDomNode *pNode)
 Create the correct type of training algorithm from the given dom node. Right now just returns a pointer to a DummyTrainingAlgorithm TODO: fix deserialize so training algorithms are really serialized. More...
 
- Protected Member Functions inherited from GClasses::SOM::TrainingAlgorithm
void setPRelationBefore (GSelfOrganizingMap &map, const GRelation &newval)
 Set map.m_pRelationBefore to newval. All subclasses must call this in their train methods so that the map will appear trained for the purposes of GIncrementalTransform. More...
 
GDistanceMetricweightDistance (GSelfOrganizingMap &map)
 Return the weight distance function so it's dimensionality can be modified by training algorithms. More...
 

Constructor & Destructor Documentation

GClasses::SOM::DummyTrainingAlgorithm::DummyTrainingAlgorithm ( )
inline

Create a dummy training algorithm (and achieve whirled peas)

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

Destructor to ensure good memory hygiene.

Member Function Documentation

virtual void GClasses::SOM::DummyTrainingAlgorithm::train ( GSelfOrganizingMap map,
const GMatrix pIn 
)
inlinevirtual

Throw error.

Implements GClasses::SOM::TrainingAlgorithm.