verve::ActiveTDConnectionList Class Reference

A dynamic list of "active" TDConnections (those with a non-zero eligibility trace). More...

#include <ActiveTDConnectionList.h>

List of all members.

Public Member Functions

VERVE_DECL ActiveTDConnectionList ()
virtual VERVE_DECL ~ActiveTDConnectionList ()
virtual VERVE_DECL void VERVE_CALL clearList ()
virtual VERVE_DECL void VERVE_CALL addNewActiveConnection (TDConnection *c)
virtual VERVE_DECL void VERVE_CALL increaseETraces ()
virtual VERVE_DECL void VERVE_CALL decayETraces ()
virtual VERVE_DECL void VERVE_CALL trainConnections (real learningFactorTimesTDError)

Protected Attributes

std::list< TDConnection * > mConnections


Detailed Description

A dynamic list of "active" TDConnections (those with a non-zero eligibility trace).

This saves a lot of time by only looping over the active TDConnections, not all of them.

Definition at line 38 of file ActiveTDConnectionList.h.


Constructor & Destructor Documentation

verve::ActiveTDConnectionList::ActiveTDConnectionList  ) 
 

Definition at line 29 of file ActiveTDConnectionList.cpp.

verve::ActiveTDConnectionList::~ActiveTDConnectionList  )  [virtual]
 

Definition at line 33 of file ActiveTDConnectionList.cpp.

References mConnections.


Member Function Documentation

void verve::ActiveTDConnectionList::addNewActiveConnection TDConnection c  )  [virtual]
 

Adds a new active TDConnection to the list.

If the TDConnection is already in the list, this will do nothing.

Definition at line 47 of file ActiveTDConnectionList.cpp.

References verve::TDConnection::isInActiveList().

void verve::ActiveTDConnectionList::clearList  )  [virtual]
 

Empties the list of active TDConnections and notifies each one that it is no longer in an active TDConnection list.

Definition at line 38 of file ActiveTDConnectionList.cpp.

References mConnections.

void verve::ActiveTDConnectionList::decayETraces  )  [virtual]
 

Decays the eligibility trace of each TDConnection.

Definition at line 73 of file ActiveTDConnectionList.cpp.

References verve::defaults::activeETraceThreshold, and mConnections.

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

void verve::ActiveTDConnectionList::increaseETraces  )  [virtual]
 

Increases the eligibility trace of each TDConnection, if appropriate.

Definition at line 64 of file ActiveTDConnectionList.cpp.

References mConnections.

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

void verve::ActiveTDConnectionList::trainConnections real  learningFactorTimesTDError  )  [virtual]
 

Trains the TDConnections using the given error signal (i.e.

learning factor * TD error).

Definition at line 107 of file ActiveTDConnectionList.cpp.

References mConnections.

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


Member Data Documentation

std::list<TDConnection*> verve::ActiveTDConnectionList::mConnections [protected]
 

A list of active TDConnections.

Definition at line 68 of file ActiveTDConnectionList.h.

Referenced by clearList(), decayETraces(), increaseETraces(), trainConnections(), and ~ActiveTDConnectionList().


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