CFeatureRewardFunction Class Reference
Class for
calculating the reward given a feature not a state.
More...
#include <crewardfunction.h>
Inheritance diagram for CFeatureRewardFunction:
List of all
members.
|
Public Member Functions
|
|
|
CFeatureRewardFunction
(CStateProperties
*discretizer)
|
| |
Creates the reward function with the
specified discetizer for the states.
|
|
virtual
|
~CFeatureRewardFunction
()
|
|
virtual double
|
getReward
(CStateCollection *oldState,
CAction *action,
CStateCollection
*newState)
|
| |
Calls getReward(CState
*oldState, CAction *action, CState *newState).
|
|
virtual double
|
getReward (int
oldState, CAction
*action, int newState)=0
|
| |
The function to be implemented by the
subclasses, has to return a reward based on discrete integer
states.
|
|
virtual double
|
getReward
(CState *oldState,
CAction *action,
CState
*newState)
|
| |
Calls getReward(int oldState,
CAction *action, int newState) with the features from the state
as argument.
|
|
virtual double
|
getReward
(CFeatureList
*oldState, CAction
*action, CFeatureList *newState)
|
| |
Deprecated.
|
Protected Attributes
|
|
CStateProperties *
|
discretizer |
Detailed Description
Class for calculating the reward given a feature not a state.
Used to calculate the reward for features (integer values). Also
implements the CRewardFunction interface, so
it can be used as normal reward function. When the getReward
function is called with state collection objects as parameters, the
state from the specified discritizer is chosen. This state has to
be a feature or discrete state, and it gets decomposed into his
features
Constructor & Destructor Documentation
|
CFeatureRewardFunction::CFeatureRewardFunction
|
( |
CStateProperties *
|
discretizer |
) |
|
|
| |
Creates the reward function with the specified discetizer for
the states.
|
| virtual
CFeatureRewardFunction::~CFeatureRewardFunction
|
( |
|
) |
[virtual] |
|
Member Function Documentation
| virtual double
CFeatureRewardFunction::getReward
|
( |
CState *
|
oldState,
|
|
|
CAction *
|
action,
|
|
|
CState *
|
newState |
|
) |
[virtual] |
|
| virtual double
CFeatureRewardFunction::getReward
|
( |
int |
oldState,
|
|
|
CAction *
|
action,
|
|
|
int |
newState |
|
) |
[pure
virtual] |
|
Member Data Documentation
The documentation for this class was generated from the following
file:
|