Closed Timothysit closed 1 year ago
This is because the Wid value lower bound is too small, for recordings at eg. 10 kHz, the lower bound of 0.4, which was the previous default, does not work, but the range [0.5, 1.5] should work (https://cbmspc.eng.uci.edu/PUBLICATIONS/zn:08b.pdf) and in a spike detection tutorial the recommended range is [0.5, 1.0], which is now the new default
The full error message is, this happens during spike detection using the wavelet method (but not the threshold method)
Warning: Your choice of Wid is not valid given the sampling rate and wavelet family
Error in detectSpikesWavelet (line 118) Sigmaj = median(abs(c(i,1:round(W(i)):end) - mean(c(i,:))))/0.6745;