CGradientVFunction Class Reference
Interface
for all classes that can use gradients for updating.
More...
#include <cvfunction.h>
Inheritance diagram for CGradientVFunction:
List of all
members.
Detailed Description
Interface for all classes that can use gradients for updating.
Gradient V-Functions are able to calculate the gradient of the
V-Function with respect to the weights in the current state and can
be also updated by a gradient object (represented as a
CFeatureList
object). In the toolbox all gradients are represented as feature
lists, where the feature index is the weight index and the feature
factor represents the gradient value of that weights. All weights
that are not listed in the feature list have a zero gradient.
- For the gradient calculation all subclasses have to implement
the function getGradient(CStateCollection
*state, CFeatureList *gradientFeatures), where the gradient in
the current state is calculated and written in the given feature
list. The feature list is supposed to be empty.
- All gradient-VFunctions implement the interface CGradientUpdateFunction
as the interface for updating a gradient function, so additionally
the subclasses have to implement the functions:
Constructor & Destructor Documentation
| |
constructor, the properties are needed to fetch the state from
the state collection.
|
| virtual
CGradientVFunction::~CGradientVFunction
|
( |
|
) |
[virtual] |
|
Member Function Documentation
| virtual void
CGradientVFunction::copy
|
( |
CLearnDataObject *
|
vFunction |
) |
[inline,
virtual] |
|
| virtual void
CGradientVFunction::loadData
|
( |
FILE * |
stream |
) |
[inline,
virtual] |
|
| virtual void
CGradientVFunction::resetData
|
( |
|
) |
[pure
virtual] |
|
| virtual void
CGradientVFunction::saveData
|
( |
FILE * |
stream |
) |
[inline,
virtual] |
|
| virtual void
CGradientVFunction::updateValue
|
( |
CState *
|
state,
|
|
|
double |
td |
|
) |
[virtual] |
|
| virtual void
CGradientVFunction::updateValue
|
( |
CStateCollection *
|
state,
|
|
|
double |
td |
|
) |
[virtual] |
|
The documentation for this class was generated from the following
file:
|