File: randomprocesses.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 (17 lines) | stat: -rw-r--r-- 656 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.. currentmodule:: brian

Random processes
----------------
To import the random processes library::

  from brian.library.random_processes import *
  
For the moment, only the Ornstein-Uhlenbeck process has been included.
The function :func:`OrnsteinUhlenbeck` returns an :class:`Equations` object. The following example
defines a membrane equation with an Ornstein-Uhlenbeck current ``I`` (= coloured noise)::

  eqs=Equations('dv/dt=-v/tau+I/C : volt')
  eqs+=OrnsteinUhlenbeck('I',mu=1*nA,sigma=2*nA,tau=10*ms)

where ``mu`` is the mean of the current, ``sigma`` is the standard deviation and
``tau`` is autocorrelation time constant.