A fast winner-take-all. More...
#include <Neuro/WinnerTakeAll.H>
Public Member Functions | |
WinnerTakeAllFast (OptionManager &mgr, const std::string &descrName="Winner-Take-All Fast", const std::string &tagName="WinnerTakeAllFast") | |
Ininitialized constructor. | |
virtual | ~WinnerTakeAllFast () |
Destructor. | |
Protected Member Functions | |
virtual void | input (const Image< float > &in) |
Set new input currents for all neurons. | |
virtual Image< float > | getV () const |
Return all our membrane potential voltages as an Image<float> | |
virtual void | saccadicSuppression (const bool on) |
Turn saccadic suppression on/off. | |
virtual void | blinkSuppression (const bool on) |
Turn blink suppression on/off. | |
virtual void | integrate (const SimTime &t, Point2D< int > &winner) |
Integrate inputs until time t (in s) and update membrane potentials. |
A fast winner-take-all.
This just does an Image<T>::findMax() on the last input array received. It hence returns a winner at each time step.
Definition at line 272 of file WinnerTakeAll.H.
WinnerTakeAllFast::WinnerTakeAllFast | ( | OptionManager & | mgr, | |
const std::string & | descrName = "Winner-Take-All Fast" , |
|||
const std::string & | tagName = "WinnerTakeAllFast" | |||
) |
Ininitialized constructor.
The WTA will be resized and initialized the first time input() is called
Definition at line 390 of file WinnerTakeAll.C.
WinnerTakeAllFast::~WinnerTakeAllFast | ( | ) | [virtual] |
Destructor.
Definition at line 399 of file WinnerTakeAll.C.
void WinnerTakeAllFast::blinkSuppression | ( | const bool | on | ) | [protected, virtual] |
Turn blink suppression on/off.
Implements WinnerTakeAllAdapter.
Definition at line 437 of file WinnerTakeAll.C.
References Image< T >::clear(), OModelParam< T >::getVal(), WinnerTakeAllAdapter::itsInputCopy, and WinnerTakeAllAdapter::itsUseBlinkSuppression.
Image< float > WinnerTakeAllFast::getV | ( | ) | const [protected, virtual] |
Return all our membrane potential voltages as an Image<float>
Implements WinnerTakeAllAdapter.
Definition at line 421 of file WinnerTakeAll.C.
References WinnerTakeAllAdapter::itsInputCopy.
void WinnerTakeAllFast::input | ( | const Image< float > & | in | ) | [protected, virtual] |
Set new input currents for all neurons.
This will initialize and resize the network if the network is currently uninitialized (e.g., just after construction or reset()).
Implements WinnerTakeAllAdapter.
Definition at line 405 of file WinnerTakeAll.C.
void WinnerTakeAllFast::integrate | ( | const SimTime & | t, | |
Point2D< int > & | winner | |||
) | [protected, virtual] |
Integrate inputs until time t (in s) and update membrane potentials.
Implements WinnerTakeAllAdapter.
Definition at line 411 of file WinnerTakeAll.C.
References findMax(), Point2D< T >::i, and WinnerTakeAllAdapter::itsInputCopy.
void WinnerTakeAllFast::saccadicSuppression | ( | const bool | on | ) | [protected, virtual] |
Turn saccadic suppression on/off.
Implements WinnerTakeAllAdapter.
Definition at line 428 of file WinnerTakeAll.C.
References Image< T >::clear(), OModelParam< T >::getVal(), WinnerTakeAllAdapter::itsInputCopy, and WinnerTakeAllAdapter::itsUseSaccadicSuppression.