A Rate decoder using an alpha function. More...
#include <ModelNeuron/NeuralDecoder.H>
Public Member Functions | |
AlphaDecoder (const SimTime &timeStep=SimTime::MSECS(1.0), const SimTime &windowSize=SimTime::MSECS(15.0)) | |
implementation of AlphaDecoder | |
~AlphaDecoder () | |
destructor | |
void | push (const double &in) |
add some data to the decoder | |
const double | getOutput () const |
get the instantaneous Spikes/Second | |
void | reset () |
reset decoder internals |
A Rate decoder using an alpha function.
Definition at line 239 of file NeuralDecoder.H.
AlphaDecoder::AlphaDecoder | ( | const SimTime & | timeStep = SimTime::MSECS(1.0) , |
|
const SimTime & | windowSize = SimTime::MSECS(15.0) | |||
) |
implementation of AlphaDecoder
constructor: in this case windowSize is the alpha parameter of the kernel function 1/alpha^2 * t * exp(-1/alpha * t), the actual length of the kernel is determined automatically
Definition at line 168 of file NeuralDecoder.C.
References exp(), SimTime::secs(), SimTime::SECS(), and SimTime::ZERO().
AlphaDecoder::~AlphaDecoder | ( | ) | [inline] |
destructor
Definition at line 248 of file NeuralDecoder.H.
const double AlphaDecoder::getOutput | ( | ) | const [virtual] |
get the instantaneous Spikes/Second
Implements NeuralDecoder.
Definition at line 210 of file NeuralDecoder.C.
void AlphaDecoder::push | ( | const double & | in | ) | [virtual] |
add some data to the decoder
Implements NeuralDecoder.
Definition at line 203 of file NeuralDecoder.C.
void AlphaDecoder::reset | ( | ) | [virtual] |
reset decoder internals
Reimplemented from NeuralDecoder.
Definition at line 221 of file NeuralDecoder.C.