SpikeStream Nemo Plugin
0.2
|
#include <AbstractSTDPFunction.h>
Public Member Functions | |
AbstractSTDPFunction () | |
virtual | ~AbstractSTDPFunction () |
virtual timestep_t | getApplySTDPInterval () |
virtual QHash< QString, double > | getParameters () |
virtual void | setParameters (QHash< QString, double > &newParameterMap) |
virtual QHash< QString, double > | getDefaultParameters () |
virtual QList< ParameterInfo > | getParameterInfoList () |
virtual float * | getPreArray ()=0 |
virtual int | getPreLength ()=0 |
virtual float * | getPostArray ()=0 |
virtual int | getPostLength ()=0 |
virtual float | getMinExcitatoryWeight ()=0 |
virtual float | getMaxExcitatoryWeight ()=0 |
virtual float | getMinInhibitoryWeight ()=0 |
virtual float | getMaxInhibitoryWeight ()=0 |
virtual float | getReward () |
virtual void | print ()=0 |
Protected Member Functions | |
double | getParameter (QString parameterName) |
Protected Attributes | |
QList< ParameterInfo > | parameterInfoList |
QHash< QString, double > | defaultParameterMap |
QHash< QString, double > | parameterMap |
bool | functionUpToDate |
Abstract interface for an STDP function
Definition at line 14 of file AbstractSTDPFunction.h.
Constructor
Definition at line 9 of file AbstractSTDPFunction.cpp.
AbstractSTDPFunction::~AbstractSTDPFunction | ( | ) | [virtual] |
Destructor
Definition at line 21 of file AbstractSTDPFunction.cpp.
timestep_t AbstractSTDPFunction::getApplySTDPInterval | ( | ) | [virtual] |
Returns the interval between applying STDP
Definition at line 30 of file AbstractSTDPFunction.cpp.
QHash< QString, double > AbstractSTDPFunction::getDefaultParameters | ( | ) | [virtual] |
Returns the default parameters for this STDP function
Definition at line 57 of file AbstractSTDPFunction.cpp.
virtual float spikestream::AbstractSTDPFunction::getMaxExcitatoryWeight | ( | ) | [pure virtual] |
Implemented in spikestream::StandardSTDPFunction, and spikestream::StepSTDPFunction.
virtual float spikestream::AbstractSTDPFunction::getMaxInhibitoryWeight | ( | ) | [pure virtual] |
Implemented in spikestream::StandardSTDPFunction, and spikestream::StepSTDPFunction.
virtual float spikestream::AbstractSTDPFunction::getMinExcitatoryWeight | ( | ) | [pure virtual] |
Implemented in spikestream::StandardSTDPFunction, and spikestream::StepSTDPFunction.
virtual float spikestream::AbstractSTDPFunction::getMinInhibitoryWeight | ( | ) | [pure virtual] |
Implemented in spikestream::StandardSTDPFunction, and spikestream::StepSTDPFunction.
double AbstractSTDPFunction::getParameter | ( | QString | parameterName | ) | [protected] |
Returns the current value of the specified parameter. Throws an exception if the parameter cannot be found
Definition at line 80 of file AbstractSTDPFunction.cpp.
QList< ParameterInfo > AbstractSTDPFunction::getParameterInfoList | ( | ) | [virtual] |
Returns information about the parameters for this STDP function.
Definition at line 63 of file AbstractSTDPFunction.cpp.
QHash< QString, double > AbstractSTDPFunction::getParameters | ( | ) | [virtual] |
Returns the parameters for this function.
Definition at line 36 of file AbstractSTDPFunction.cpp.
virtual float* spikestream::AbstractSTDPFunction::getPostArray | ( | ) | [pure virtual] |
Implemented in spikestream::StandardSTDPFunction, and spikestream::StepSTDPFunction.
virtual int spikestream::AbstractSTDPFunction::getPostLength | ( | ) | [pure virtual] |
Implemented in spikestream::StandardSTDPFunction, and spikestream::StepSTDPFunction.
virtual float* spikestream::AbstractSTDPFunction::getPreArray | ( | ) | [pure virtual] |
Implemented in spikestream::StandardSTDPFunction, and spikestream::StepSTDPFunction.
virtual int spikestream::AbstractSTDPFunction::getPreLength | ( | ) | [pure virtual] |
Implemented in spikestream::StandardSTDPFunction, and spikestream::StepSTDPFunction.
float AbstractSTDPFunction::getReward | ( | ) | [virtual] |
Returns reward parameter, which is common to all STDP functions.
Definition at line 69 of file AbstractSTDPFunction.cpp.
virtual void spikestream::AbstractSTDPFunction::print | ( | ) | [pure virtual] |
Implemented in spikestream::StandardSTDPFunction, and spikestream::StepSTDPFunction.
void AbstractSTDPFunction::setParameters | ( | QHash< QString, double > & | newParamMap | ) | [virtual] |
Sets the parameters for this function
Definition at line 42 of file AbstractSTDPFunction.cpp.
QHash<QString, double> spikestream::AbstractSTDPFunction::defaultParameterMap [protected] |
Map containing default values of the parameters
Definition at line 40 of file AbstractSTDPFunction.h.
bool spikestream::AbstractSTDPFunction::functionUpToDate [protected] |
Records if the function is up to date. This value is set to false when the parameters are changed
Definition at line 47 of file AbstractSTDPFunction.h.
QList<ParameterInfo> spikestream::AbstractSTDPFunction::parameterInfoList [protected] |
List defining the parameters
Definition at line 37 of file AbstractSTDPFunction.h.
QHash<QString, double> spikestream::AbstractSTDPFunction::parameterMap [protected] |
Map containing the current values of the parameters
Definition at line 43 of file AbstractSTDPFunction.h.