Reinforcement Learning Toolbox 2.0
last updated:
General
Documentation
Manual
Tutorial
Class Reference
Master Thesis
Examples
Related Papers
Downloads
Links
News
mailto:webmaster
Main Page     Class Hierarchy   Compound List   File List   Compound Members   File Members

CAdaptiveParameterFromNStepsCalculator Class Reference

Adaptive Parameter Calculator which calculates the parameter's value from the number of learning steps. More...

#include <cagentlistener.h>

Inheritance diagram for CAdaptiveParameterFromNStepsCalculator:

CAdaptiveParameterUnBoundedValuesCalculator CSemiMDPListener CAdaptiveParameterCalculator CParameterObject CParameterObject CParameters CParameters List of all members.


Public Member Functions

  CAdaptiveParameterFromNStepsCalculator (CParameters *targetObject, string targetParameter, int nStepsPerUpdate, int functionKind, double param0, double paramScale, double targetOffset, double targetScale)
virtual  ~CAdaptiveParameterFromNStepsCalculator ()
virtual void  nextStep (CStateCollection *, CAction *, CStateCollection *)
  sends the Listener the S-A-S tuple from a new step

virtual void  onParametersChanged ()
  Updates all data elements which represents parameters.

virtual void  resetCalculator ()
  Reset the targetValue.



Protected Attributes

int  targetValue
int  nStepsPerUpdate

Detailed Description

Adaptive Parameter Calculator which calculates the parameter's value from the number of learning steps.

The target value in this class is the number of learning steps, so its target value is unbounded. The target value gets resetted to 0 if a new learning trial has started. This adaptive parameter has to be added to the agent's listener list in order to count the number of steps. For more details see the super class. Parameters of CAdaptiveParameterFromNStepsCalculator: see CAdaptiveParameterUnBoundedValuesCalculator


Constructor & Destructor Documentation

CAdaptiveParameterFromNStepsCalculator::CAdaptiveParameterFromNStepsCalculator CParameters targetObject,
string  targetParameter,
int  nStepsPerUpdate,
int  functionKind,
double  param0,
double  paramScale,
double  targetOffset,
double  targetScale
 
virtual CAdaptiveParameterFromNStepsCalculator::~CAdaptiveParameterFromNStepsCalculator  )  [virtual]
 

Member Function Documentation

virtual void CAdaptiveParameterFromNStepsCalculator::nextStep CStateCollection ,
CAction ,
CStateCollection
[virtual]
 

sends the Listener the S-A-S tuple from a new step

Reimplemented from CSemiMDPListener.

virtual void CAdaptiveParameterFromNStepsCalculator::onParametersChanged  )  [inline, virtual]
 

Updates all data elements which represents parameters.

Reimplemented from CAdaptiveParameterUnBoundedValuesCalculator.

virtual void CAdaptiveParameterFromNStepsCalculator::resetCalculator  )  [virtual]
 

Reset the targetValue.

This function is used for resetting for example the steps or number of episodes when learning is restarted. (used for parameter evaluation)

Implements CAdaptiveParameterCalculator.


Member Data Documentation

int CAdaptiveParameterFromNStepsCalculator::nStepsPerUpdate [protected]
 
int CAdaptiveParameterFromNStepsCalculator::targetValue [protected]
 

The documentation for this class was generated from the following file: