bionet.utils.plotting.plot_encoded¶
- bionet.utils.plotting.plot_encoded(t, u, s, fig_title='', file_name='')¶
Plot a time-encoded signal.
Parameters: t : ndarray of floats
Times (in s) at which the original signal was sampled.
u : ndarray of floats
Signal samples.
s : ndarray of floats
Intervals between encoded signal spikes.
fig_title : string
Plot title.
file_name : string
File in which to save the plot.
Notes
The spike times (i.e., the cumulative sum of the interspike intervals) must all occur within the interval t-min(t).