File: examples-misc_reliability.txt

package info (click to toggle)
brian 1.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, stretch
  • size: 23,436 kB
  • sloc: python: 68,707; cpp: 29,040; ansic: 5,182; sh: 111; makefile: 61
file content (46 lines) | stat: -rw-r--r-- 1,088 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
.. currentmodule:: brian

.. index::
   pair: example usage; NeuronGroup
   pair: example usage; run
   pair: example usage; show
   pair: example usage; raster_plot
   pair: example usage; linked_var
   pair: example usage; SpikeMonitor

.. _example-misc_reliability:

Example: reliability (misc)
===========================

Reliability of spike timing.
See e.g. Mainen & Sejnowski (1995) for experimental results in vitro.

R. Brette

::

    from brian import *
    
    # The common noisy input
    N = 25
    tau_input = 5 * ms
    input = NeuronGroup(1, model='dx/dt=-x/tau_input+(2./tau_input)**.5*xi:1')
    
    # The noisy neurons receiving the same input
    tau = 10 * ms
    sigma = .015
    eqs_neurons = '''
    dx/dt=(0.9+.5*I-x)/tau+sigma*(2./tau)**.5*xi:1
    I : 1
    '''
    neurons = NeuronGroup(N, model=eqs_neurons, threshold=1, reset=0, refractory=5 * ms)
    neurons.x = rand(N)
    neurons.I = linked_var(input,'x') # input.x is continuously fed into neurons.I
    spikes = SpikeMonitor(neurons)
    
    run(500 * ms)
    raster_plot(spikes)
    show()