Skip to content

spikeMerge_single_()

jamesjun edited this page Dec 18, 2017 · 4 revisions

For a given channel, remove spikes if there are other larger spikes occurring within time range (P.spkRefrac_ms) and within the radius P.maxDist_site_um (r1 in the figure).

Syntax

  • [viSpkA, vrSpkA, viSiteA] = spikeMerge_single_(viSpk, vrSpk, viSite, iSite, P)

Input

  • viSpk: Spike times
  • vrSpk: Spike amplitudes
  • viSite: Spike sites
  • iSite: Site to perform merging
  • P: Parameters struct (P)

Output

  • viSpkA: Peak spike times
  • vrSpkA: Peak spike amplitudes
  • viSiteA: Peak spike times

Operations

  • For each spike
    • Find neighboring spikes using findRange_()
    • Remove the spike if its amplitude is less than its neighbors
Clone this wiki locally