detectSpikesFromTrace: Detect spikes times in a filtered signal.

Description Usage Arguments Details Value

View source: R/SpikeExtraction.R

Description

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.

Usage

1
2
detectSpikesFromTrace(data, samplingRate, powerWindowSizeMs, powerWindowSlideMs,
  SDThreshold, spikeDetectionRefractoryMs)

Arguments

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

Details

If there are low frequency components in the signal, they should be filtered out.

Value

list containing rms, rmsT, rmsSD, rmsMean, rmsThreshold, spikeTime, spikePower, spikeTrough


kevin-allen/relectro documentation built on May 20, 2019, 9:06 a.m.