Description Usage Arguments Details Value
View source: R/SpikeExtraction.R
This function works on the data of a single channel. It calculates the power with the function powerRootMeanSquare(), and calculates the mean and standard deviation. It calls identifySpikeTimes() to get the spike times and other parameters of the detected spikes.
1 2 | detectSpikesFromTrace(data, samplingRate, powerWindowSizeMs, powerWindowSlideMs,
SDThreshold, spikeDetectionRefractoryMs)
|
data |
Vector containing the spikes and some noise |
samplingRate |
Sampling rate of the trace |
powerWindowSizeMs |
Window size when calculating power (root mean square) |
powerWindowSlideMs |
Shift of the window in ms between estimation of power |
SDThreshold |
Power threshold for spike detection. |
spikeDetectionRefractoryMs |
Refractory period in the spike detection |
If there are low frequency components in the signal, they should be filtered out.
list containing rms, rmsT, rmsSD, rmsMean, rmsThreshold, spikeTime, spikePower, spikeTrough
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.