CSingleStateLinearInterpolationFeatureCalculator Class
Reference
Class
for linear interpolation features of a single continuous state
variable. More...
#include <clinearfafeaturecalculator.h>
Inheritance diagram for
CSingleStateLinearInterpolationFeatureCalculator:
List of all members.
Detailed Description
Class for linear interpolation features of a single continuous
state variable.
This class represent a linear interpolator for a single
continuous state variable. You can specify the centers of the
features and which dimension of the modelstate you want to use.
There are always 2 features active, the nearest feature to the left
and to the right. The feature factors are calculated per linear
interpolation, so if dist is the distance of 2 neighbored features
and dist_left is the distance to the left feature from the current
state x, the feature factor of the left feature is 1 - dist_left /
dist and the factor of the right feature is naturally
dist_left/dist.
Constructor & Destructor Documentation
|
CSingleStateLinearInterpolationFeatureCalculator::CSingleStateLinearInterpolationFeatureCalculator
|
( |
int |
dimension,
|
|
|
int |
numPartitions,
|
|
|
double * |
partitions |
|
) |
|
|
|
CSingleStateLinearInterpolationFeatureCalculator::~CSingleStateLinearInterpolationFeatureCalculator
|
( |
|
) |
|
|
Member Function Documentation
| virtual double
CSingleStateLinearInterpolationFeatureCalculator::getFeatureFactor
|
( |
int |
partition,
|
|
|
double |
difference,
|
|
|
double |
nextPart |
|
) |
[protected,
virtual] |
|
| |
Interface function for calculating the feature activation
factor.
Gets the number of the partition (= featureindex), the value of
the continuous state variable and the distance to the feature
center to the current state varaible value as input. In this
distance periodic states are already considered.
Implements CSingleStateFeatureCalculator.
|
The documentation for this class was generated from the following
file:
|