CSingleStateDiscretizer Class Reference
Discretizes
the original States i'th continuous state into the specified
partitions. More...
#include <cdiscretizer.h>
Inheritance diagram for CSingleStateDiscretizer:
List of all
members.
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] |
|
| virtual void
CSingleStateDiscretizer::setOriginalState
|
( |
CStateProperties *
|
originalState |
) |
[virtual] |
|
Member Data Documentation
| |
The index of the continuous state variable to
discretize.
|
| |
The original state which's state variable is
discretized.
|
The documentation for this class was generated from the following
file:
|