baccuslab / pyret

Python tools for analysis of neurophysiology data
https://pyret.readthedocs.io/en/master/
MIT License
35 stars 8 forks source link

Poisson spike sampler #44

Closed nirum closed 9 years ago

nirum commented 9 years ago

Add a function to spiketools.py that takes a firing rate as an input and returns spikes drawn from a time-varying Poisson process with the given rate. Allow for the option of sampling multiple trials of this process.