simulateRawTrace: Generate raw traces with some background gaussian noise and...

Description Usage Arguments Value

Description

Several different waveforms can be used. They are all generated from the same generic spike by adding gaussian noise to it.

Usage

1
2
3
4
simulateRawTrace(samplingRate = 20000, durationSec = 1, noiseSD = 100,
  noiseMean = 0, waveformAmplitude = 700, nClusters = 3, nChannels = 4,
  waveformDifferentiationSD = 200, minChannelScalling = 0.3,
  spikeJitterAcrossChannelMs = 0.1, maxSpikes = 10000)

Arguments

samplingRate

Sampling rate of the trace

durationSec

Total duration in second of the trace

noiseSD

Standard deviation of gaussian noise

noiseMean

Mean of noise

waveformAmplitude

Negative amplitude of the generic spike waveform

nClusters

Number of different waveforms (neurons) in the trace

nChannels

Number of channels, 4 in case of tetrodes

waveformDifferentiationSD

Differentiation of the waveforms of different cluster (gaussian noise added in generic waveform)

minChannelScalling

Minimal value (between 0 and 1) that can be used for creating the tetorde effect (scalling of waveform on different channels)

spikeJitterAcrossChannelMs

Time variation between the waveforms of a spike on the different channels.

maxSpikes

Maximum number of spikes to include in the traces

Value

list containing trace, spikeTimes and cluId


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