Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

WinnerTakeAllStd Class Reference

#include <Neuro/WinnerTakeAll.H>

Inheritance diagram for WinnerTakeAllStd:

Inheritance graph
[legend]
Collaboration diagram for WinnerTakeAllStd:

Collaboration graph
[legend]
List of all members.

Detailed Description

The standard winner-take-all.

This is a trivial winner-take-all implementation, based on a 2D layer of LeakyIntFire neurons and a unique global inhibitory neuron. All neurons in the layer charge up in parallel; whenever one reaches threshold, it activates the inhibitory interneuron (which is connected to all neurons in the layer), which in turn resets all neurons in the layer. WinnerTakeAllStd is an Image<LeakyIntFire> and inherits all the standard methods of class Image. To avoid confusion, we here add explicit input() and getV() methods (rather than providing conversion functions between LeakyIntFire and float, which could make the process more transparent but also possibly more confusing).

Definition at line 227 of file WinnerTakeAll.H.

Public Member Functions

 WinnerTakeAllStd (OptionManager &mgr, const std::string &descrName="Winner-Take-All Std", const std::string &tagName="WinnerTakeAllStd")
 Constructor.
virtual ~WinnerTakeAllStd ()
 Destructor.
virtual void reset1 ()
 Reset to initial state just after construction.

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.
void inhibit ()

Protected Attributes

Image< LeakyIntFireitsNeurons
LeakyIntFire itsGIN
SimTime itsT
float itsGleak
float itsGinh
float itsGinput


Constructor & Destructor Documentation

WinnerTakeAllStd::WinnerTakeAllStd OptionManager mgr,
const std::string descrName = "Winner-Take-All Std",
const std::string tagName = "WinnerTakeAllStd"
 

Constructor.

Definition at line 252 of file WinnerTakeAll.C.

References GVX_TRACE, itsGIN, itsGleak, and LeakyIntFire::setGleak().

WinnerTakeAllStd::~WinnerTakeAllStd  )  [virtual]
 

Destructor.

Definition at line 264 of file WinnerTakeAll.C.

References GVX_TRACE.


Member Function Documentation

void WinnerTakeAllStd::blinkSuppression const bool  on  )  [protected, virtual]
 

Turn blink suppression on/off.

Implements WinnerTakeAllAdapter.

Reimplemented in WinnerTakeAllTempNote.

Definition at line 376 of file WinnerTakeAll.C.

References OModelParam< T >::getVal(), GVX_TRACE, inhibit(), WinnerTakeAllAdapter::itsUseBlinkSuppression, and LINFO.

Image< float > WinnerTakeAllStd::getV  )  const [protected, virtual]
 

Return all our membrane potential voltages as an Image<float>.

Implements WinnerTakeAllAdapter.

Reimplemented in WinnerTakeAllTempNote.

Definition at line 343 of file WinnerTakeAll.C.

References Image< T >::begin(), Image< T >::beginw(), Image< T >::endw(), Image< T >::getDims(), GVX_TRACE, itsNeurons, NO_INIT, and ModelComponent::stop().

Referenced by WinnerTakeAllGreedy::integrate().

void WinnerTakeAllStd::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.

Reimplemented in WinnerTakeAllTempNote.

Definition at line 283 of file WinnerTakeAll.C.

References Image< T >::beginw(), Image< T >::endw(), Image< T >::getDims(), GVX_TRACE, Image< T >::initialized(), itsGinh, itsGleak, itsNeurons, Image< T >::resize(), ModelComponent::stop(), and ZEROS.

void WinnerTakeAllStd::integrate const SimTime t,
Point2D< int > &  winner
[protected, virtual]
 

Integrate inputs until time t (in s) and update membrane potentials.

Implements WinnerTakeAllAdapter.

Reimplemented in WinnerTakeAllGreedy, and WinnerTakeAllTempNote.

Definition at line 302 of file WinnerTakeAll.C.

References Image< T >::begin(), Image< T >::beginw(), SimTime::computeDeltaT(), Image< T >::getHeight(), LeakyIntFire::getTimeStep(), Image< T >::getWidth(), GVX_TRACE, h, i, Point2D< T >::i, inhibit(), LeakyIntFire::integrate(), itsGIN, itsGinput, itsGleak, WinnerTakeAllAdapter::itsInputCopy, itsNeurons, itsT, Point2D< T >::j, LeakyIntFire::setG(), and w.

void WinnerTakeAllStd::reset1  )  [virtual]
 

Reset to initial state just after construction.

Reimplemented from WinnerTakeAllAdapter.

Reimplemented in WinnerTakeAllTempNote.

Definition at line 270 of file WinnerTakeAll.C.

References Image< T >::freeMem(), GVX_TRACE, itsGinh, itsGinput, itsGleak, itsNeurons, itsT, WinnerTakeAllAdapter::reset1(), and SimTime::ZERO().

Referenced by WinnerTakeAllTempNote::reset1().

void WinnerTakeAllStd::saccadicSuppression const bool  on  )  [protected, virtual]
 

Turn saccadic suppression on/off.

Implements WinnerTakeAllAdapter.

Reimplemented in WinnerTakeAllTempNote.

Definition at line 367 of file WinnerTakeAll.C.

References OModelParam< T >::getVal(), GVX_TRACE, inhibit(), WinnerTakeAllAdapter::itsUseSaccadicSuppression, and LINFO.


The documentation for this class was generated from the following files:
Generated on Mon Nov 23 15:51:29 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4