The winner-take-all base class. More...
#include <Neuro/WinnerTakeAll.H>
Public Member Functions | |
Constructor, destructor, and reset | |
WinnerTakeAll (OptionManager &mgr, const std::string &descrName, const std::string &tagName) | |
Ininitialized constructor. | |
virtual | ~WinnerTakeAll () |
Destructor. |
The winner-take-all base class.
This is a 2D winner-take-all, a.k.a., spatial maximum detector. It is just a base class with virtual function definitions. Various winner-take-all variants are available below, which provide implementations for these virtual functions. The WTA receives input through the input() function, and its current state (membrane potential of neurons) can be retrieved using getV(). Various inplementations will typically derive from class Image and inherit all the standard methods of class Image.
See also WinnerTakeAllAdapter for an intermediate base class that provides the getV() output functions. Why are those functions not in this base class? The reason is that Brain only requires the input interface of WinnerTakeAll, and separating the output interface allows us to make a stub class that has just no-op input functions.
Definition at line 77 of file WinnerTakeAll.H.
WinnerTakeAll::WinnerTakeAll | ( | OptionManager & | mgr, | |
const std::string & | descrName, | |||
const std::string & | tagName | |||
) |
Ininitialized constructor.
The SM will be resized and initialized the first time input() is called
Definition at line 64 of file WinnerTakeAll.C.
WinnerTakeAll::~WinnerTakeAll | ( | ) | [virtual] |
Destructor.
Definition at line 73 of file WinnerTakeAll.C.