|
GClasses
|
This is a simple and common action iterator that can be used when there is a discrete set of possible actions. More...
#include <GPolicyLearner.h>
Public Member Functions | |
| GDiscreteActionIterator (int actionCount) | |
| virtual | ~GDiscreteActionIterator () |
| virtual int | actionCount () |
| Returns the total number of action values. More... | |
| virtual int | actionDims () |
| Returns 1. More... | |
| virtual bool | nextAction (double *pOutAction) |
| Iterates to the next action. Returns false if there are no more. More... | |
| virtual void | randomAction (double *pOutAction, GRand *pRand) |
| Returns a random action. More... | |
| virtual void | reset (const double *pState) |
| Resets the iterator. More... | |
Public Member Functions inherited from GClasses::GAgentActionIterator | |
| GAgentActionIterator () | |
| virtual | ~GAgentActionIterator () |
Protected Attributes | |
| int | m_action |
| int | m_count |
This is a simple and common action iterator that can be used when there is a discrete set of possible actions.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Returns the total number of action values.
Implements GClasses::GAgentActionIterator.
|
inlinevirtual |
Returns 1.
Implements GClasses::GAgentActionIterator.
|
virtual |
Iterates to the next action. Returns false if there are no more.
Implements GClasses::GAgentActionIterator.
|
virtual |
Returns a random action.
Implements GClasses::GAgentActionIterator.
|
virtual |
Resets the iterator.
Implements GClasses::GAgentActionIterator.
|
protected |
|
protected |