class="comment">%          (sum_t[t * (v_t - thresh)] / sum_t[(v_t - thresh)]).</span>
0034 <span class="comment">%     to obtain the location of the peak.  The interpolation to align the waveforms</span>
0035 <span class="comment">%     is then performed using a cubic spline.</span>
0036 <span class="comment">%</span>
0037 <span class="comment">% References:</span>
0038 <span class="comment">%     Fee MS et al (1996).  J. Neurosci Methods (69): 175-88</span>
0039 <span class="comment">%     Sahani M (1999)