Programming Reference:LinearCombination
Function
Similar to ParallelCombination, the LinearCombination class is a template that takes as arguments two filter class names. The instantiated template is then a combined filter, and must be given its own class name by defining a struct that publicly inherits from the instantiated template:
#include "FilterCombination.h"
#include "Filter1.h"
#include "Filter2.h"
struct MyCombination : LinearCombination<Filter1, Filter2> {};
The instantiated LinearCombination template may then be referred to as a filter with name MyCombination.
The resulting filter will apply existing filters Filter1 and Filter2 in sequence, such that the LinearCombination's input will be the input of Filter1, and its output will we the output of Filter2.
NOTE: Due to existence of the more general SubchainFilter, the LinearCombination class is largely obsolete.
Parameters
None.
States
None.
See also
Programming Reference:ParallelCombination, Programming Reference:SubchainFilter, Programming Reference:ChoiceCombination