


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