change calculation of burstiness

This commit is contained in:
a.ott 2020-07-14 17:26:42 +02:00
parent d29e6cded2
commit a334d45ec1

View File

@ -38,9 +38,11 @@ class Baseline:
isis = np.array(self.get_interspike_intervals())
if len(isis) == 0:
return 0
bursts = isis[isis < 1.5 * (1.0/eod_freq)]
return len(bursts) / float(len(isis))
fullfilled = isis < (2.5 / eod_freq)
perc_bursts = np.sum(fullfilled) / len(fullfilled)
return perc_bursts * (np.mean(isis)*1000)
def get_interspike_intervals(self):
raise NotImplementedError("NOT YET OVERRIDDEN FROM ABSTRACT CLASS")