Stimulus
The stimlation classes are used to define the external input to the network. They inherit from the Module class
from torch, which allows us to tune the parameters of the stimulus with the usual torch methods. A couple of stimulus models are provided in the package, but it is easy to implement
new ones by taking inspiration from the existing ones and extending the BaseStimulus class.
Base class for stimuli. |
|
Poisson stimulus of neurons. |
|
Regular stimulus of neurons with period of \(T\) time steps and a duration \(\tau\) time steps for each stimulus event. |
|
Sinusoidal stimulus of neurons. |
|
Stimulus loaded from a file. |