FeatureSet method: add

FeatureSet method: add

Syntax: <feature set> add <feature> <a> <featureA> <b> <featureB> [optional flags]

Example: fs add C 1.0 A -1.0 B

A new feature is created by adding two other features together each of them weighted with a factor. In the example the new feature C is just the difference between feature A and B. The features A and B must be of the same type but can be FMatrix as well as SVector.

Optional flags:

-mode <m>
The mode <m> determines wether the features add together must have the same length or not. Default is <m> = 0 which means only features with exactly the same length can be added. <m> = -1 means the created feature will have the minimum of the lengths of the source features, <m> = 1 the maximum. In the latter case the shorter feature will be set to 0 if no more values are available.
Related commands: lin to multiply one source feature with a factor and add a constant.


maier@ira.uka.de