Skip to content
jamesjun edited this page Dec 3, 2017 · 9 revisions

Detect spikes from each site and group multiple detected spikes according to the spatiotemporal limits set by P.spkRefrac_ms and P.maxDist_site_um.

Syntax

  • [viTime_spk, vrAmp_spk, viSite_spk] = detect_spikes_(mnWav3, vnThresh_site, vlKeep_ref, P)

Input

  • mnWav3: filtered traces (nSamples_load x nSites: int16)
  • vnThresh_site: Detection threshold for each site (nSites x 1: int16).
  • vlKeep_ref: logical vector to enable spike detection (nSamples_load x 1: logical)
  • P: Parameters struct (P)

Output

  • viTime_spk: Spike times
  • vrAmp_spk: Spike amplitudes
  • viSite_spk: Spike sites

Operations

Clone this wiki locally