You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compute synchrony metrics. Synchrony metrics represent the rate of occurrences of
571
-
"synchrony_size" spikes at the exact same sample index.
571
+
spikes at the exact same sample index, with synchrony sizes 2, 4 and 8.
572
572
573
573
Parameters
574
574
----------
575
575
sorting_analyzer : SortingAnalyzer
576
576
A SortingAnalyzer object.
577
-
synchrony_sizes : list or tuple, default: (2, 4, 8)
578
-
The synchrony sizes to compute.
579
577
unit_ids : list or None, default: None
580
578
List of unit ids to compute the synchrony metrics. If None, all units are used.
581
579
582
580
Returns
583
581
-------
584
582
sync_spike_{X} : dict
585
583
The synchrony metric for synchrony size X.
586
-
Returns are as many as synchrony_sizes.
587
584
588
585
References
589
586
----------
590
587
Based on concepts described in [Grün]_
591
588
This code was adapted from `Elephant - Electrophysiology Analysis Toolkit <https://github.com/NeuralEnsemble/elephant/blob/master/elephant/spike_train_synchrony.py#L245>`_
592
589
"""
593
-
assertmin(synchrony_sizes) >1, "Synchrony sizes must be greater than 1"
594
-
# Sort the synchrony times so we can slice numpy arrays, instead of using dicts
0 commit comments