iSpike
2.1
Spike conversion library for robotics
|
#include <IzhikevichNeuronSim.hpp>
Public Member Functions | |
IzhikevichNeuronSim () | |
IzhikevichNeuronSim (size_t numNeurons, double a, double b, double c, double d) | |
const std::vector< unsigned > & | getSpikes () |
void | step () |
void | setInputCurrent (unsigned index, double current) |
void | setParameterA (double a) |
void | setParameterB (double b) |
void | setParameterC (double c) |
void | setParameterD (double d) |
void | initialize (size_t numNeurons) |
Neuron simulator using the Izhikevich model of neurons
Definition at line 9 of file IzhikevichNeuronSim.hpp.
Empty constructors - parameters have to be set separately
Definition at line 11 of file IzhikevichNeuronSim.cpp.
IzhikevichNeuronSim::IzhikevichNeuronSim | ( | size_t | numNeurons, |
double | a, | ||
double | b, | ||
double | c, | ||
double | d | ||
) |
Constructor with parameters
Definition at line 23 of file IzhikevichNeuronSim.cpp.
const std::vector<unsigned>& ispike::IzhikevichNeuronSim::getSpikes | ( | ) | [inline] |
Definition at line 14 of file IzhikevichNeuronSim.hpp.
void IzhikevichNeuronSim::initialize | ( | size_t | numNeurons | ) |
Re-initializes the simulator, creating arrays and setting parameters
Definition at line 45 of file IzhikevichNeuronSim.cpp.
void IzhikevichNeuronSim::setInputCurrent | ( | unsigned | index, |
double | current | ||
) |
Sets the input current to a particular neuron
Definition at line 63 of file IzhikevichNeuronSim.cpp.
void ispike::IzhikevichNeuronSim::setParameterA | ( | double | a | ) | [inline] |
Definition at line 17 of file IzhikevichNeuronSim.hpp.
void ispike::IzhikevichNeuronSim::setParameterB | ( | double | b | ) | [inline] |
Definition at line 18 of file IzhikevichNeuronSim.hpp.
void ispike::IzhikevichNeuronSim::setParameterC | ( | double | c | ) | [inline] |
Definition at line 19 of file IzhikevichNeuronSim.hpp.
void ispike::IzhikevichNeuronSim::setParameterD | ( | double | d | ) | [inline] |
Definition at line 20 of file IzhikevichNeuronSim.hpp.
void IzhikevichNeuronSim::step | ( | ) |
Advances simulator by one time step
Definition at line 72 of file IzhikevichNeuronSim.cpp.