From deb1fb51359085ff5d171e5ffa8cd4c142a4e174 Mon Sep 17 00:00:00 2001 From: Mario Mulansky Date: Wed, 28 Jan 2015 16:53:48 +0100 Subject: added smoothing functionality to spike sync --- examples/spike_sync.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/spike_sync.py b/examples/spike_sync.py index a72dbbf..7f9e762 100644 --- a/examples/spike_sync.py +++ b/examples/spike_sync.py @@ -32,7 +32,11 @@ plt.figure() f = spk.spike_sync_profile_multi(spike_trains) x, y = f.get_plottable_data() -plt.plot(x, y, '-k', label="SPIKE-Sync profile") +plt.plot(x, y, '-b', alpha=0.7, label="SPIKE-Sync profile") + +x1, y1 = f.get_plottable_data(averaging_window_size=50) +plt.plot(x1, y1, '-k', lw=2.5, label="averaged SPIKE-Sync profile") + print("Average:", f.avrg()) -- cgit v1.2.3