CContinuousActionQFunction Class Reference
#include
<ccontinuousactions.h>
Inheritance diagram for CContinuousActionQFunction:
List of all
members.
|
Public Member Functions
|
|
|
CContinuousActionQFunction
(CContinuousAction
*contAction)
|
|
virtual
|
~CContinuousActionQFunction
()
|
|
virtual CAction
*
|
getMax
(CStateCollection *,
CActionSet
*availableActions, CActionDataSet
*actionDatas)
|
| |
Calculates the best action from a given
action set.
|
|
virtual void
|
getBestContinuousAction
(CStateCollection *state,
CContinuousActionData
*actionData)=0
|
|
virtual void
|
updateValue
(CStateCollection *state,
CAction *action, double
td, CActionData
*data=NULL)
|
| |
Interface for updating a Q-Value.
|
|
virtual void
|
setValue
(CStateCollection *state,
CAction *action, double
qValue, CActionData
*data=NULL)
|
| |
Sets the Value of the value function
assigned to the given action.
|
|
virtual double
|
getValue
(CStateCollection *state,
CAction *action,
CActionData
*data=NULL)
|
| |
Returns the Value of the value function
assigned to the given action.
|
|
virtual void
|
updateCAValue
(CStateCollection *state,
CContinuousActionData
*data, double td)
|
|
virtual void
|
setCAValue
(CStateCollection *state,
CContinuousActionData
*data, double qValue)
|
|
virtual double
|
getCAValue
(CStateCollection *state,
CContinuousActionData
*data)=0
|
|
virtual void
|
getGradient
(CStateCollection *state,
CAction *action,
CActionData *data,
CFeatureList
*gradient)
|
|
virtual void
|
getCAGradient
(CStateCollection *state,
CContinuousActionData
*data, CFeatureList
*gradient)
|
|
CContinuousAction
*
|
getContinuousActionObject
()
|
|
virtual int
|
getNumWeights
()
|
| |
Returns the number of weights.
|
|
virtual void
|
getWeights
(double *parameters)
|
| |
Function for getting all weights.
|
|
virtual void
|
setWeights
(double *parameters)
|
| |
Function for setting all weights.
|
Protected Attributes
|
|
CContinuousAction
*
|
contAction |
Constructor & Destructor Documentation
|
CContinuousActionQFunction::CContinuousActionQFunction
|
( |
CContinuousAction
*
|
contAction |
) |
|
|
| virtual
CContinuousActionQFunction::~CContinuousActionQFunction
|
( |
|
) |
[virtual] |
|
Member Function Documentation
| CContinuousAction*
CContinuousActionQFunction::getContinuousActionObject
|
( |
|
) |
[inline] |
|
| |
Calculates the best action from a given action set.
Returns the best action from the availableActions action set. If
several actions have the same best Q-Value, the first action which
has this value in the action set is choosen.
Reimplemented from CAbstractQFunction.
|
| virtual int
CContinuousActionQFunction::getNumWeights
|
( |
|
) |
[inline,
virtual] |
|
| |
Returns the Value of the value function assigned to the given
action.
Returns the value of the getValue Function of the specified
value function.
Implements CAbstractQFunction.
|
| virtual void
CContinuousActionQFunction::getWeights
|
( |
double * |
parameters |
) |
[virtual] |
|
| |
Sets the Value of the value function assigned to the given
action.
Calls the setValue Function of the specified value function.
Reimplemented from CAbstractQFunction.
|
| virtual void
CContinuousActionQFunction::setWeights
|
( |
double * |
parameters |
) |
[virtual] |
|
Member Data Documentation
The documentation for this class was generated from the following
file:
|