A canonical neuron model is implemented where the membrane potential Vm of a neuron is given by
, Rm is the membrane resistance, Isyn(t) is the current supplied by the synapses, Iinject is a non-specific background current and Inoise is a Gaussion random variable with zero mean and a given variance noise.
At time t=0Vm ist set to Vinit . If Vm exceeds the threshold voltage Vthresh it is reset to Vreset and hold there for the length Trefract of the absolute refractory period.