Question: 1 . ( Spike trains ) Generate N = 5 0 Poisson spike trains with rate lambda = 1 0 spikes / s ,
Spike trains Generate N Poisson spike trains with rate lambda spikess each lasting T seconds. These will represent a fictitious dataset comprising recordings from the same neuron in N trials of a fictitious experiment one spike train for each trial To generate the spike trains, generate first the interspike intervals ISIs and then obtain the spike times by cumulating the ISIs.
Here is the outline of the procedure:
Use the fact that the ISIs of a Poisson spike train are exponentially distributed with parameter lambda ie ISIlogulambda where log denotes the natural logarithm in Matlab, and the random variable u follows a uniform distribution between zero and one. The instruction urandn will generate n such random deviates. For the actual number of spikes to be generated, see Box
The ISIs are the differences between successive spike times, tttttn tn where t t tn are the spike times. Obtain the vector of spike times, t t t tn by cumulating the ISIs: tcumsumISI
Repeat the above procedure N times, once for each spike train.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
