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

CModelStateDiscretizer Class Reference

Class calculating a single discrete state from several state variables. More...

#include <cdiscretizer.h>

Inheritance diagram for CModelStateDiscretizer:

CAbstractStateDiscretizer CStateModifier CStateProperties List of all members.


Public Member Functions

  CModelStateDiscretizer (CStateProperties *properties, int *discretStates=NULL, unsigned int numDiscreteStates=0)
  Creates an ModelStateDiscretizer which use the state defined by the properties as original state.

virtual  ~CModelStateDiscretizer ()
virtual unsigned int  getDiscreteStateNumber (CStateCollection *state)
  Calculates the discrete State Number using the and operator for all discrete state variable of the orignal state.



Protected Member Functions

unsigned int  calcDiscreteStateSize (CStateProperties *prop, int *discreteStates, unsigned int num)


Protected Attributes

CStateProperties originalState
unsigned int  numDiscStateVar
int *  discreteStates
  number of discrete states


Detailed Description

Class calculating a single discrete state from several state variables.

The class calcualtes from several discrete state variables of the original state (defined by the given state properties in the constructor) a single discrete state number. This is done by an "and" combination of the discrete state variables. You can also choose which discrete state variables you want in the constructor.

See also:
CDiscreteStateOperatorAnd

Constructor & Destructor Documentation

CModelStateDiscretizer::CModelStateDiscretizer CStateProperties properties,
int *  discretStates = NULL,
unsigned int  numDiscreteStates = 0
 

Creates an ModelStateDiscretizer which use the state defined by the properties as original state.

With the parameter *discretStates you can choose the discrete state variables you want for your new discrete state. If you omit this parameter all discrete state from the original state are choosen. The properties object are the properties of the original state (most time the model state)

virtual CModelStateDiscretizer::~CModelStateDiscretizer  )  [virtual]
 

Member Function Documentation

unsigned int CModelStateDiscretizer::calcDiscreteStateSize CStateProperties prop,
int *  discreteStates,
unsigned int  num
[protected]
 
virtual unsigned int CModelStateDiscretizer::getDiscreteStateNumber CStateCollection state  )  [virtual]
 

Calculates the discrete State Number using the and operator for all discrete state variable of the orignal state.

Implements CAbstractStateDiscretizer.


Member Data Documentation

int* CModelStateDiscretizer::discreteStates [protected]
 

number of discrete states

Reimplemented from CStateProperties.

unsigned int CModelStateDiscretizer::numDiscStateVar [protected]
 
CStateProperties* CModelStateDiscretizer::originalState [protected]
 

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