change calculation of burstiness
This commit is contained in:
parent
d29e6cded2
commit
a334d45ec1
@ -38,9 +38,11 @@ class Baseline:
|
|||||||
isis = np.array(self.get_interspike_intervals())
|
isis = np.array(self.get_interspike_intervals())
|
||||||
if len(isis) == 0:
|
if len(isis) == 0:
|
||||||
return 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):
|
def get_interspike_intervals(self):
|
||||||
raise NotImplementedError("NOT YET OVERRIDDEN FROM ABSTRACT CLASS")
|
raise NotImplementedError("NOT YET OVERRIDDEN FROM ABSTRACT CLASS")
|
||||||
|
Loading…
Reference in New Issue
Block a user