Reinforcement Learning Toolbox 2.0
last updated:
General
Documentation
Manual
Tutorial
Class Reference
Master Thesis
Examples
Related Papers
Downloads
Links
News
mailto:webmaster
Main Page     Class Hierarchy   Compound List   File List   Compound Members   File Members

CSingleStateLinearInterpolationFeatureCalculator Class Reference

Class for linear interpolation features of a single continuous state variable. More...

#include <clinearfafeaturecalculator.h>

Inheritance diagram for CSingleStateLinearInterpolationFeatureCalculator:

CSingleStateFeatureCalculator CFeatureCalculator CStateModifier CStateProperties List of all members.


Public Member Functions

  CSingleStateLinearInterpolationFeatureCalculator (int dimension, int numPartitions, double *partitions)
  ~CSingleStateLinearInterpolationFeatureCalculator ()


Protected Member Functions

virtual double  getFeatureFactor (int partition, double difference, double nextPart)
  Interface function for calculating the feature activation factor.


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: