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

CDiscreteStateOperatorAnd Class Reference

The and operator combines several discrete states to one discrete state. More...

#include <cdiscretizer.h>

Inheritance diagram for CDiscreteStateOperatorAnd:

CStateMultiModifier CAbstractStateDiscretizer CStateModifier CStateProperties List of all members.


Public Member Functions

  CDiscreteStateOperatorAnd ()
virtual  ~CDiscreteStateOperatorAnd ()
virtual unsigned int  getDiscreteStateNumber (CStateCollection *state)
  Calculates the discrete state index as a "and" combination of all added discrete states.

virtual void  addStateModifier (CAbstractStateDiscretizer *featCalc)
  Add the discrete state to the operator.



Public Attributes

CState stateBuf

Detailed Description

The and operator combines several discrete states to one discrete state.

Combination the discrete states by the and operator. Several discrete state variables are transformed to one non-ambiguous discrete state variable. The state size of the new state is the product of all state sizes.

When the operator is created, it is empty and has no discrete states to combine, you can add as many discrete states as you want with the function addStateModifier. The class is often use in combination with CSingleStateDiscretizer because here you have several discrete states variables comming from the single state discretizer (usually you will have 1 discretizer for each dimension of your model state) and you need to combine these discrete state numbers to one unique discrete state number for your learners.


Constructor & Destructor Documentation

CDiscreteStateOperatorAnd::CDiscreteStateOperatorAnd  ) 
 
virtual CDiscreteStateOperatorAnd::~CDiscreteStateOperatorAnd  )  [virtual]
 

Member Function Documentation

virtual void CDiscreteStateOperatorAnd::addStateModifier CAbstractStateDiscretizer featCalc  )  [virtual]
 

Add the discrete state to the operator.

virtual unsigned int CDiscreteStateOperatorAnd::getDiscreteStateNumber CStateCollection state  )  [virtual]
 

Calculates the discrete state index as a "and" combination of all added discrete states.

Implements CAbstractStateDiscretizer.


Member Data Documentation

CState* CDiscreteStateOperatorAnd::stateBuf
 

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