File: examples-misc_mirollo_strogatz.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 (40 lines) | stat: -rw-r--r-- 748 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
.. currentmodule:: brian

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

.. _example-misc_mirollo_strogatz:

Example: mirollo_strogatz (misc)
================================

Mirollo-Strogatz network

::

    from brian import *
    
    tau = 10 * ms
    v0 = 11 * mV
    N = 20
    w = .1 * mV
    
    group = NeuronGroup(N, model='dv/dt=(v0-v)/tau : volt', threshold=10 * mV, reset=0 * mV)
    
    W = Connection(group, group, 'v', weight=w)
    
    group.v = rand(N) * 10 * mV
    
    S = SpikeMonitor(group)
    
    run(300 * ms)
    
    raster_plot(S)
    show()