生成连续速率的时间序列

收录时间:2013-07-30
资源分类:Matlab 工具:MATLAB 6.5 (R13)

本Matlab程序自动从峰值的时间开始,连续生产若干峰值时间序列。

continuous firing rate time series from discrete spike times

  Each spike is represented by a gaussian with maximum value 1 on the  timestamp. ALPHA is inversely proportional to standard deviation.
 
  If srate=1000, 95% of the gaussian is included in timestamp+-200ms when alpha=5,  100ms when alpha=10, 50ms when alpha=20, 25ms when alpha=40.
 
  [spkvec,timevec]=spikegauss(timestamps,srate,min_timevec,max_timevec,alpha)
 
  Example :
 
      timestamps=[-1.22 0.33 0.34 0.35 0.40 3.70 7.30]; %sec
      srate=1000;
      min_timevec=-4;
      max_timevec=8;
      alpha=20;

 
   [spkvec,timevec]=spikegauss(timestamps,srate,min_timevec,max_timevec,alpha);
 
      plot(timevec,spkvec,'k')
      hold on
      plot([min_timevec max_timevec],[1 1],'-r')
      plot(timestamps,randn(size(timestamps))/10+1,'ob')
      hold off

文件下载列表
spikegauss.zip (1.63KB)  
附件内容(只显示2中的1个)
spikegauss.m  
标签: spike time series 
更多

目前尚无评论

用户反馈   关于我们
Copyright (©) ZHIHUISHI.COM 2013 All Rights Reserved.
京ICP备12012558号-7