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

CFeatureOperatorAnd Class Reference

Combines 2 or more feature states with an "And" operatation. More...

#include <clinearfafeaturecalculator.h>

Inheritance diagram for CFeatureOperatorAnd:

CStateMultiModifier CFeatureCalculator CStateModifier CStateProperties List of all members.


Public Member Functions

  CFeatureOperatorAnd ()
virtual void  getModifiedState (CStateCollection *state, CState *modifiedState)
  Calculates the feature state.

virtual void  addStateModifier (CStateModifier *featCalc)
  Adds a feature state to the modifier.

virtual void  initFeatureOperator ()
  Inits the feature operator.


Detailed Description

Combines 2 or more feature states with an "And" operatation.

The "and" operator gives you the possibility to use different feature states simulatanously that are dependent. This class works primary like the discrete operator and class, it combines several dependent feature state to one. The feature state size of the operator is the product off al feature state sizes, the number of active states is the product of all numbers of active states. Each active feature in the operator is assigned to different active states from the feature states (there is one active feature in the operator for each possibility of choosing one active feature from each feature calculator). A new feature index is calculated according to the feature indices of the assigned active features, the feature factor is the product of all feature factors.

The feature operator and is used to combine 2 or more depedent states, for example single state RBF networks (CSingleStateRBFFeatureCalculator).
You always have to init the feature operator with the function initFeatureOperator after ALL feature states have been added and before you add the feature operator to the agent's modifier list.

Constructor & Destructor Documentation

CFeatureOperatorAnd::CFeatureOperatorAnd  ) 
 

Member Function Documentation

virtual void CFeatureOperatorAnd::addStateModifier CStateModifier featCalc  )  [virtual]
 

Adds a feature state to the modifier.

The state modifier HAS to be a feature calculator or a discretizer. After the operator has been initialized, no feature calculators can be added any more.

Reimplemented from CStateMultiModifier.

virtual void CFeatureOperatorAnd::getModifiedState CStateCollection state,
CState modifiedState
[virtual]
 

Calculates the feature state.

The "and" operator gives you the possibility to use different feature states simulatanously that are dependent. This class works primary like the discrete operator and class, it combines several dependent feature state to one. The feature state size of the operator is the product off al feature state sizes, the number of active states is the product of all numbers of active states. Each active feature in the operator is assigned to different active states from the feature states (there is one active feature in the operator for each possibility of choosing one active feature from each feature calculator). A new feature index is calculated according to the feature indices of the assigned active features, the feature factor is the product of all feature factors.

Implements CStateModifier.

virtual void CFeatureOperatorAnd::initFeatureOperator  )  [virtual]
 

Inits the feature operator.

You always have to init the feature operator after ALL feature states have been added and before you use the feature operator (e.g. add the feature operator to the agent's modifier list).


The documentation for this class was generated from the following file: