#include <Combinator.h>
Inherits Marsyas::MarSystem.
Public Member Functions | |
| MarSystem * | clone () const |
| Implementation of the MarSystem::clone() method. | |
| Combinator (const Combinator &a) | |
| Combinator copy constructor. | |
| Combinator (std::string name) | |
| Combinator constructor. | |
| void | myProcess (realvec &in, realvec &out) |
| Implementation of the MarSystem::myProcess method. | |
| ~Combinator () | |
| Combinator destructor. | |
Private Member Functions | |
| void | addControls () |
| Add specific controls needed by this MarSystem. | |
| void | myUpdate (MarControlPtr sender) |
| Reads changed controls and sets up variables if necessary. | |
Private Attributes | |
| MarControlPtr | ctrl_weights_ |
| MarControlPtr for the gain control. | |
This example is the same as Gain; it scales the output by multiplying each sample with a real number.
Controls:
Definition at line 40 of file Combinator.h.
| Combinator | ( | std::string | name | ) |
Combinator constructor.
Add any specific controls needed by this MarSystem.
Definition at line 49 of file Combinator.cpp.
References Combinator::addControls().
Referenced by Combinator::clone().
| Combinator | ( | const Combinator & | a | ) |
Combinator copy constructor.
All member MarControlPtr have to be explicitly reassigned in the copy constructor.
Definition at line 60 of file Combinator.cpp.
References Combinator::ctrl_weights_.
Implementation of the MarSystem::myProcess method.
Iterate over the observations and samples and do the combination.
Implements MarSystem.
Definition at line 114 of file Combinator.cpp.
References Combinator::ctrl_weights_, and realvec::setval().
| void myUpdate | ( | MarControlPtr | sender | ) | [private, virtual] |
Reads changed controls and sets up variables if necessary.
Use the default MarSystem setup with equal input/output stream format.
Reimplemented from MarSystem.
Definition at line 97 of file Combinator.cpp.
References MarSystem::updControl().
1.5.6