#include <simulate.h>
Public Member Functions | |
virtual | ~SimBase () |
virtual SimBase< T > * | clone (ESN< T > *esn) const =0 |
virtual void | simulate (const typename ESN< T >::DEMatrix &in, typename ESN< T >::DEMatrix &out)=0 |
class SimBase Implementation | |
SimBase (ESN< T > *esn) | |
virtual void | reallocate () |
additional interface for filter neurons and delay&sum readout | |
virtual void | setBPCutoffConst (T f1, T f2) throw (AUExcept) |
virtual void | setBPCutoff (const typename ESN< T >::DEVector &f1, const typename ESN< T >::DEVector &f2) throw (AUExcept) |
virtual void | setIIRCoeff (const typename DEMatrix< T >::Type &B, const typename DEMatrix< T >::Type &A, int series=1) throw (AUExcept) |
virtual void | initDelayLine (int index, const typename DEVector< T >::Type &initbuf) throw (AUExcept) |
virtual DEMatrix< T > ::Type | getDelays () throw (AUExcept) |
virtual DEVector< T > ::Type & | getDelayBuffer (int output, int nr) throw (AUExcept) |
Data Fields | |
ESN< T >::DEMatrix | last_out_ |
ESN< T >::DEVector | t_ |
Protected Attributes | |
ESN< T > * | esn_ |
aureservoir::SimBase< T >::SimBase | ( | ESN< T > * | esn | ) | [inline] |
Constructor.
virtual aureservoir::SimBase< T >::~SimBase | ( | ) | [inline, virtual] |
Destructor.
virtual SimBase<T>* aureservoir::SimBase< T >::clone | ( | ESN< T > * | esn | ) | const [pure virtual] |
Clones the simulation algorithm with all its internal data (virtual constructor idiom)
Implemented in aureservoir::SimStd< T >, aureservoir::SimLI< T >, aureservoir::SimBP< T >, aureservoir::SimFilter< T >, aureservoir::SimFilter2< T >, aureservoir::SimFilterDS< T >, and aureservoir::SimSquare< T >.
virtual void aureservoir::SimBase< T >::simulate | ( | const typename ESN< T >::DEMatrix & | in, | |
typename ESN< T >::DEMatrix & | out | |||
) | [pure virtual] |
simulation algorithm
in | matrix of input values (inputs x timesteps) | |
out | matrix for output values (outputs x timesteps) |
Implemented in aureservoir::SimStd< T >, aureservoir::SimLI< T >, aureservoir::SimBP< T >, aureservoir::SimFilter< T >, aureservoir::SimFilter2< T >, aureservoir::SimFilterDS< T >, and aureservoir::SimSquare< T >.
void aureservoir::SimBase< T >::reallocate | ( | ) | [inline, virtual] |
reallocates data buffers
Reimplemented in aureservoir::SimFilterDS< T >, and aureservoir::SimSquare< T >.
void aureservoir::SimBase< T >::setBPCutoffConst | ( | T | f1, | |
T | f2 | |||
) | throw (AUExcept) [inline, virtual] |
Reimplemented in aureservoir::SimBP< T >.
void aureservoir::SimBase< T >::setBPCutoff | ( | const typename ESN< T >::DEVector & | f1, | |
const typename ESN< T >::DEVector & | f2 | |||
) | throw (AUExcept) [inline, virtual] |
Reimplemented in aureservoir::SimBP< T >.
void aureservoir::SimBase< T >::setIIRCoeff | ( | const typename DEMatrix< T >::Type & | B, | |
const typename DEMatrix< T >::Type & | A, | |||
int | series = 1 | |||
) | throw (AUExcept) [inline, virtual] |
Reimplemented in aureservoir::SimFilter< T >.
void aureservoir::SimBase< T >::initDelayLine | ( | int | index, | |
const typename DEVector< T >::Type & | initbuf | |||
) | throw (AUExcept) [inline, virtual] |
Reimplemented in aureservoir::SimFilterDS< T >.
DEMatrix< T >::Type aureservoir::SimBase< T >::getDelays | ( | ) | throw (AUExcept) [inline, virtual] |
Reimplemented in aureservoir::SimFilterDS< T >.
DEVector< T >::Type & aureservoir::SimBase< T >::getDelayBuffer | ( | int | output, | |
int | nr | |||
) | throw (AUExcept) [inline, virtual] |
Reimplemented in aureservoir::SimFilterDS< T >.
ESN<T>::DEMatrix aureservoir::SimBase< T >::last_out_ |
output from last simulation
ESN<T>::DEVector aureservoir::SimBase< T >::t_ |
temporary object needed for algorithm calculation
ESN<T>* aureservoir::SimBase< T >::esn_ [protected] |
reference to the data of the network