Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Teem::MatrixController Class Reference
[Controllers and neural networks]

#include <MatrixController.h>

Inheritance diagram for Teem::MatrixController:

Teem::Controller List of all members.

Detailed Description

Simple controller described by a matrix.

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.


The documentation for this class was generated from the following files:
Generated on Mon Oct 24 17:38:27 2005 for Teem by  doxygen 1.4.2