Xmipp
v3.23.11-Nereus
|
#include <som.h>
Public Types | |
enum | neighType { GAUSSIAN = 0, BUBBLE = 1 } |
Type of neighborhood function. More... | |
Public Types inherited from ClassificationAlgorithm< ClassificationMap > | |
typedef ClassificationMap | DS |
typedef DS::TS | TS |
Public Member Functions | |
SOM (Descent &_alpha, Descent &_radius, neighType _neighType, unsigned long _nSteps) | |
SOM (std::istream &_is) | |
virtual | ~SOM () |
SOM (const SOM &)=delete | |
void | alpha (Descent _alpha) |
void | radius (Descent _radius) |
void | nSteps (const unsigned long &_nSteps) |
virtual void | train (ClassificationMap &_som, ClassicTrainingVectors &_ts) const |
virtual double | test (const ClassificationMap &_som, const TS &_examples) const |
virtual void | clear () |
virtual void | printSelf (std::ostream &_os) const |
virtual void | readSelf (std::istream &_is) |
virtual void | saveObject (std::ostream &_os) const |
virtual void | loadObject (std::istream &_is) |
SOM & | operator= (const SOM &op1) |
Public Member Functions inherited from ClassificationAlgorithm< ClassificationMap > | |
ClassificationAlgorithm (const std::string &_ID="") | |
virtual | ~ClassificationAlgorithm () |
virtual void | train (DS &_ds, const TS &_examples) const |
virtual void | train (DS &_ds, TS &_examples) const |
virtual double | test (const DS &_ds, const TS &_examples) const=0 |
virtual const std::string & | setID () const |
virtual std::string & | setID () |
void | setListener (BaseListener *_listener) |
Protected Attributes | |
Descent | somAlpha |
Descent | somRadius |
alpha(t) More... | |
neighType | somNeigh |
radius(t) More... | |
unsigned long | somNSteps |
Neighborhood type for training (Bubble or Gaussian) More... | |
Protected Attributes inherited from ClassificationAlgorithm< ClassificationMap > | |
std::string | ID |
BaseListener * | listener |
Friends | |
std::ostream & | operator<< (std::ostream &_os, const SOM &_som) |
std::istream & | operator>> (std::istream &_is, SOM &_som) |
enum SOM::neighType |
|
inline |
Constructs the algorithm Parameter: _alpha How is gonna decrease alpha Parameter: _radius How is gonna decrease the radius of neighborhood Parameter: _radius How is gonna decrease the radius of neighborhood Parameter: _neighType Type of neighborhood function Parameter: _nSteps Number of training steps
Definition at line 150 of file som.h.
SOM::SOM | ( | std::istream & | _is | ) |
|
delete |
void SOM::alpha | ( | Descent | _alpha | ) |
Sets the alpha descent function Parameter: _alpha alpha(t)
Sets the alpha function Parameter: _alpha alpha(t)
|
virtual |
Clears the Algorithm
Definition at line 186 of file som.cpp.
|
virtual |
void SOM::nSteps | ( | const unsigned long & | _nSteps | ) |
|
virtual |
Standard output for a SOM algorithm Parameter: _os The output stream
Reimplemented from ClassificationAlgorithm< ClassificationMap >.
Definition at line 197 of file som.cpp.
void SOM::radius | ( | Descent | _radius | ) |
Sets the radius descent function Parameter: _radius radius(t)
Sets the radius function Parameter: _radius radius(t)
|
virtual |
|
virtual |
|
virtual |
Tests the SOM Parameter: _som The som to test Parameter: _examples The training set of examples returns the quantization error
Tests the SOM Parameter: _som The som to test Parameter: _examples The training set of examples
Definition at line 148 of file som.cpp.
|
virtual |
Trains the SOM Parameter: _som The som to train Parameter: _ts The training set
Definition at line 76 of file som.cpp.
|
friend |
|
friend |
|
protected |