|  | GeNN
    4.9.0
    GPU enhanced Neuronal Networks (GeNN) | 
There is a number of predefined models which can be used with the ModelSpec::addCurrentSource function:
In order to define a new current source type for use in a GeNN application, it is necessary to define a new class derived from CurrentSourceModels::Base. For convenience the methods this class should implement can be implemented using :
For example, using these , we can define a uniformly distributed noisy current source: