#include <MatrixController.h>
Inheritance diagram for Teem::MatrixController:
The output value is a linear combination of the inputs, with coefficient contained in a matrix.
Public Member Functions | |
MatrixController (unsigned inputCount, unsigned outputCount) | |
Constructor, create a matrix controller with inputCount inputs and outputCount outputs. | |
virtual | ~MatrixController () |
Destructor. | |
virtual void | setInput (unsigned index, double val) |
Set the input index to value val . | |
virtual double | getOutput (unsigned index) |
Return the value of output index . | |
virtual void | step () |
Do a step, process inputs and compute outputs. | |
Public Attributes | |
Matrix< double > | matrix |
Coefficient of the controller. | |
std::valarray< double > | bias |
Bias vector that will be added after the matrix product. | |
Protected Attributes | |
std::valarray< double > | input |
Storage for input. | |
std::valarray< double > | output |
Storage for output. |