verve::UltraSparseCodePopulation Class Reference

A Population with only one active Neuron. More...

#include <UltraSparseCodePopulation.h>

Inheritance diagram for verve::UltraSparseCodePopulation:

verve::Population verve::WinnerTakeAllPopulation List of all members.

Public Member Functions

VERVE_DECL UltraSparseCodePopulation ()
virtual VERVE_DECL ~UltraSparseCodePopulation ()
virtual VERVE_DECL void VERVE_CALL init (unsigned int numNeurons)
virtual VERVE_DECL void VERVE_CALL resetShortTermMemory ()
virtual VERVE_DECL void VERVE_CALL setActiveOutput (unsigned int i)
virtual VERVE_DECL int VERVE_CALL getActiveOutput () const

Protected Attributes

int mActiveIndex

Detailed Description

A Population with only one active Neuron.

Definition at line 32 of file UltraSparseCodePopulation.h.


Constructor & Destructor Documentation

verve::UltraSparseCodePopulation::UltraSparseCodePopulation  ) 
 

Definition at line 29 of file UltraSparseCodePopulation.cpp.

References mActiveIndex.

verve::UltraSparseCodePopulation::~UltraSparseCodePopulation  )  [virtual]
 

Definition at line 35 of file UltraSparseCodePopulation.cpp.


Member Function Documentation

int verve::UltraSparseCodePopulation::getActiveOutput  )  const [virtual]
 

Returns the index of the single active Neuron.

Returns -1 if no Neuron has been set active yet.

Definition at line 70 of file UltraSparseCodePopulation.cpp.

References mActiveIndex.

Referenced by verve::RLModule::updateActorOutput().

void verve::UltraSparseCodePopulation::init unsigned int  numNeurons  )  [virtual]
 

Overridden to reset the active index.

Reimplemented from verve::Population.

Definition at line 39 of file UltraSparseCodePopulation.cpp.

References verve::Population::init(), and mActiveIndex.

Referenced by verve::RLModule::RLModule().

void verve::UltraSparseCodePopulation::resetShortTermMemory  )  [virtual]
 

Overridden to reset the active index.

Reimplemented from verve::Population.

Definition at line 45 of file UltraSparseCodePopulation.cpp.

References mActiveIndex, and verve::Population::resetShortTermMemory().

void verve::UltraSparseCodePopulation::setActiveOutput unsigned int  i  )  [virtual]
 

Sets the single active Neuron.

Definition at line 53 of file UltraSparseCodePopulation.cpp.

References mActiveIndex, and verve::Population::mNeurons.


Member Data Documentation

int verve::UltraSparseCodePopulation::mActiveIndex [protected]
 

The index of the single active Neuron.

Definition at line 54 of file UltraSparseCodePopulation.h.

Referenced by getActiveOutput(), init(), resetShortTermMemory(), setActiveOutput(), and UltraSparseCodePopulation().


The documentation for this class was generated from the following files:
Generated on Tue Jan 24 21:46:40 2006 for Verve by  doxygen 1.4.6-NO