tcorr
Compute TCC, TAC for trial spike counts (Bair, Zohary, Newsome, 2001).
Parameters
- chan1 -
- chan2 -
- start - start time for binning (sampling units).
- period - duration of plot (sampling units).
- zflag (0) -
- hipassflag (0) - Hi pass filter
- gnormflag (0) - Gaussian smoothing norm. (SD = 4.0 hardcoded)
- plotflag (1) -
- sigma_lt (4.0) - Smoothing for long-term, default is 4.
Output stats:
- name
- short-term - subtract if not hipass or gnorm
- long-term - smoothed value at t=0, SD sigma_lt
- width_cc - width at half-height
- AC_1 - peak AC, after replacing t=0 value w/ neighbor, smooth w/ sigma_lt
- width_1 - width at half-height
- AC_2 -
- width_2 - width at half-height
Example
# # Auto-correlation of trial spike counts. # tcorr all plot chan1 unit0 chan2 unit0 start 0 period 2000 zflag 1