extractSpikes

PURPOSE ^

extracts spikes from raw signal

SYNOPSIS ^

function [rawMean, filteredSignal, rawTraceSpikes,spikeWaveforms, spikeTimestamps, runStd2, upperlim, noiseTraces] = extractSpikes(rawSignal, Hd, params )

DESCRIPTION ^

extracts spikes from raw signal
applies band-pass filtering to raw signal before doing so.

params.nrNoiseTraces: 0 if no noise should be estimated
               >0 : # of noise traces to be used to estimate autocorr of
               noise, returned in variable autocorr


params.detectionMethod: 1 -> from power signal, 2 threshold positive, 3 threshold negative, 4 threshold abs, 5 wavelet
params.detectionParams: depends on detectionMethod. 
       if detectionmethod==1, detectionParams.kernelSize
       if detectionmethod==4, detectionParams.scaleRanges (the range of scales (2 values))
                              detectionParams.waveletName (which wavelet to use)

params.peakAlignMethod: 1-> find peak, 2->none, 3->peak of power signal, 4->peak of MTEO signal.


orig: urut/2004
revised: urut/feb07

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 03-Oct-2007 12:29:38 by m2html © 2003