CFeatureOperatorAnd Class Reference
Combines
2 or more feature states with an "And" operatation.
More...
#include <clinearfafeaturecalculator.h>
Inheritance diagram for CFeatureOperatorAnd:
List of all
members.
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:
|