Spiking Neuron

An illustrative example of a spiking neuron model. Highly biologically unrealistic and so not the sort of thing really used in simulations but gets the jist across.

Internally it simulates a very simple model and generates the TikZ.

Download snn-example.py

Usage

Spiking Neuron

LaTeX Source:

\input{|"python snn-example.py"}

Some parameters can be found at the top of the file which tweak the probability and effect of spikes. Uses a fixed seed for deterministic output.