CGridFeatureCalculator Class Reference
Abstract Superclass
for all feature calculator that partition the state space with a
grid. More...
#include <clinearfafeaturecalculator.h>
Inheritance diagram for CGridFeatureCalculator:
List of all
members.
Detailed Description
Abstract Superclass for all feature calculator that partition the
state space with a grid.
This class lays a grid over a specified sub-space of the model
space. How this grid is used (e.g. Tiling or RBF network) is
specified by the sub-classes. You can specify which dimensions you
want to use (dimensions array), how much partitions you need for
each dimension and also an offset for each dimension which is added
to the grid centers. The size of the feature space is the product
of all numbers of partitions.
- The class provides methods for retrieving the position of a
feature (getFeaturePosition), retrieving the active feature
(feature nearest to the current state) (getActiveFeature), and
retrieving the current partitions of all dimensions
(getSingleActiveFeature).
- This class always works with the normalized continuous state
variable values (scaled to the intervall [0, 1], so consider that
when choosing your offsets.
Constructor & Destructor Documentation
|
CGridFeatureCalculator::CGridFeatureCalculator
|
( |
unsigned int |
numDim,
|
|
|
unsigned int |
dimensions[],
|
|
|
unsigned int |
partitions[],
|
|
|
double |
offsets[],
|
|
|
unsigned int |
numActiveFeatures |
|
) |
|
|
| |
This class lays a grid over a specified sub-space of the model
space. How this grid is used (e.g. Tiling or RBF network) is
specified by the sub-classes. You can specify which dimensions you
want to use, how much partitions you need for each dimension and
also an offset for each dimension which is added to the grid
centers. The first parameter is the number of dimensions you want
to use so its the size of your arrays. The size of the feature
space is the product of all numbers of
partitions.
|
|
CGridFeatureCalculator::~CGridFeatureCalculator
|
( |
|
) |
|
|
Member Function Documentation
| virtual unsigned int
CGridFeatureCalculator::getActiveFeature
|
( |
CState *
|
state |
) |
[virtual] |
|
| |
Returns the number of the nearest feature to the current
state.
|
| int unsigned
CGridFeatureCalculator::getFeatureIndex
|
( |
int |
position[]
|
) |
|
|
| |
returns the feature index of the given position array (active
partitions of the single state variables)
|
| virtual void
CGridFeatureCalculator::getFeaturePosition
|
( |
unsigned int |
feature,
|
|
|
ColumnVector * |
position |
|
) |
[virtual] |
|
| |
Stores the position of the specified feature in the position
vector.
|
| virtual void
CGridFeatureCalculator::getModifiedState
|
( |
CStateCollection *
|
state,
|
|
|
CState *
|
featState |
|
) |
[pure
virtual] |
|
| int unsigned
CGridFeatureCalculator::getNumDimensions
|
( |
|
) |
|
|
| |
Returns the number of dimensions you use.
|
| virtual void
CGridFeatureCalculator::getSingleActiveFeature
|
( |
CState *
|
state,
|
|
|
unsigned int * |
activeFeature |
|
) |
[virtual] |
|
| |
retrievs the current partitions of all
dimensions
|
| void
CGridFeatureCalculator::setGridScale
|
( |
int |
dimension,
|
|
|
double |
scale |
|
) |
|
|
Member Data Documentation
The documentation for this class was generated from the following
file:
|