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.

BaseStimulus

Base class for stimuli.

PoissonStimulus

Poisson stimulus of neurons.

RegularStimulus

Regular stimulus of neurons with period of \(T\) time steps and a duration \(\tau\) time steps for each stimulus event.

SinStimulus

Sinusoidal stimulus of neurons.

LoadedStimulus

Stimulus loaded from a file.