csn-le / wave_clus

A fast and unsupervised algorithm for spike detection and sorting using wavelets and super-paramagnetic clustering
124 stars 65 forks source link

Inter Spike Interval #205

Closed Jay-Shiralkar closed 2 years ago

Jay-Shiralkar commented 2 years ago

Hi Fernando, I'm trying to analyze whether ISI distribution of different clusters is statistically different from each other or not. Although, I get the ISI distribution figures, I'm not able to find the associated numbers with those ISI plots in times files ? How can I get those ? Thanks, Jay

ferchaure commented 2 years ago

Hi Jay, You have to calculated them from the spikes times:

For example for the class 1:

classes = cluster_class(:,1);
sptimes = cluster_class(:,2);
isi_c1ass1=diff(sptimes(classes ==1));