figure for psth method comparsion, some introductory words for spiketrain chapter

This commit is contained in:
2015-10-27 23:34:15 +01:00
parent b17fafdc73
commit eef177f7ee
2 changed files with 15 additions and 4 deletions

View File

@@ -193,7 +193,7 @@ def plot_conv_rate(spike_times, sigma=0.05, max_t=30, dt=1e-4):
def plot_comparison(spike_times, bin_width, sigma, max_t=30., dt=1e-4):
times = np.squeeze(spike_times[0][0])
time, conv_rate = get_convolved_rate(times, sigma)
time, conv_rate = get_convolved_rate(times, bin_width/np.sqrt(12.))
time, inst_rate = get_instantaneous_rate(times)
time, binn_rate = get_binned_rate(times, bin_width)