[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MATLAB code for Poisson spike generator



Dear Ana,

a Poisson spike generator with a fixed mean rate for a given interval is very easy - you just need to generate random spike times according to a uniform probability density distribution during your time interval (number of spikes = mean rate * interval duration). This of course doesn't take refractoriness into account. Perhaps a simple way to incorporate that is to look at each successive spike time that you generate and check whether it occurs within the refractory period of another spike, and if so, reject that new spike and generate a new one.

Erik

--
Erik Larsen
Speech and Hearing Bioscience and Technology
Harvard-MIT Division of Health Sciences and Technology

On 10/26/06, Ana Alves Pinto <aalvespinto@xxxxxxx> wrote:
Dear List,

I'm looking for MATLAB code for a Poisson spike generator, given a mean
rate, a certain duration and a refractory period. Could anyone provide the
code to do this?
Thank you in advance for any help.
Best regards,

Ana

Ana Alves Pinto

Instituto de Neurociencias de Castilla y León
Universidad de Salamanca
Avda. Alfonso X "El Sabio" s/n      Tel. +34-923 294500 ext. 1957
37007 Salamanca         Fax. +34-923 294 750
E-mail: aalvespinto@xxxxxxx