1. Leaky-integrate-and-fire modelΒΆ

List all functions in the LIF module

# used for ipython notebook inline display purposes
%matplotlib inline
import neurodynex.leaky_integrate_and_fire.LIF as LIF
print dir(LIF)
['LIF_Neuron', 'LIF_Sinus', 'LIF_Step', '__builtins__', '__doc__', '__file__', '__name__', '__package__', 'b2', 'np', 'plot_data', 'plt']

Import all functions from the LIF module

from neurodynex.leaky_integrate_and_fire.LIF import *

Run a step current through the LIF model

curr = LIF_Step()
../_images/leaky-integrate-and-fire_6_01.png

Run a sinus current through the LIF model

curr = LIF_Sinus()
../_images/leaky-integrate-and-fire_8_01.png