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

CSingleStateDiscretizer Class Reference

Discretizes the original States i'th continuous state into the specified partitions. More...

#include <cdiscretizer.h>

Inheritance diagram for CSingleStateDiscretizer:

CAbstractStateDiscretizer CStateModifier CStateProperties List of all members.


Public Member Functions

  CSingleStateDiscretizer (int dimension, int numPartitions, double *partitions)
virtual  ~CSingleStateDiscretizer ()
virtual unsigned int  getDiscreteStateNumber (CStateCollection *state)
  Discretizes the specified continuous state variable with the partitions array.

virtual void  setOriginalState (CStateProperties *originalState)
  Set the original State.



Protected Attributes

int  dimension
  The index of the continuous state variable to discretize.

int  numPartitions
double *  partitions
CStateProperties originalState
  The original state which's state variable is discretized.


Detailed Description

Discretizes the original States i'th continuous state into the specified partitions.

The class serves as tools so that you don't have to create your own state discretizer classes, you can build your discrete state with already available classes. This class only discretize a single continuous state of the model state into given partitions. You can specify an double array as partition, and which continuous state variable should be used of the model state. The discretizer than calculates the partition in which the continuous state variable is located and returns its number. Since the values in the partition array are the limits of the partitions, the discrete state size is the partition array's size + 1. The discrete states created by CSingleStateDiscretizer can then be combined by CDiscreteStateOperatorAnd.


Constructor & Destructor Documentation

CSingleStateDiscretizer::CSingleStateDiscretizer int  dimension,
int  numPartitions,
double *  partitions
 
virtual CSingleStateDiscretizer::~CSingleStateDiscretizer  )  [virtual]
 

Member Function Documentation

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

Discretizes the specified continuous state variable with the partitions array.

Implements CAbstractStateDiscretizer.

virtual void CSingleStateDiscretizer::setOriginalState CStateProperties originalState  )  [virtual]
 

Set the original State.


Member Data Documentation

int CSingleStateDiscretizer::dimension [protected]
 

The index of the continuous state variable to discretize.

int CSingleStateDiscretizer::numPartitions [protected]
 
CStateProperties* CSingleStateDiscretizer::originalState [protected]
 

The original state which's state variable is discretized.

double* CSingleStateDiscretizer::partitions [protected]
 

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