Table of Contents

Class DetectSpikes

Namespace
Bonsai.Dsp
Assembly
Bonsai.Dsp.dll

Represents an operator that detects spike events in the input signal and extracts their waveforms.

[WorkflowElementCategory(ElementCategory.Transform)]
public class DetectSpikes : Combinator<Mat, SpikeWaveformCollection>
Inheritance
DetectSpikes
Inherited Members

Properties

Delay

Gets or sets the delay of each spike waveform from its trigger, in samples.

public int Delay { get; set; }

Property Value

int

Length

Gets or sets the length of each spike waveform, in samples.

public int Length { get; set; }

Property Value

int

Threshold

Gets or sets the per-channel threshold for detecting individual spikes.

[TypeConverter(typeof(UnidimensionalArrayConverter))]
public double[] Threshold { get; set; }

Property Value

double[]

WaveformRefinement

Gets or sets a value specifying the waveform refinement method.

public SpikeWaveformRefinement WaveformRefinement { get; set; }

Property Value

SpikeWaveformRefinement

Methods

Process(IObservable<Mat>)

Detects spike events in the input signal and extracts their waveforms.

public override IObservable<SpikeWaveformCollection> Process(IObservable<Mat> source)

Parameters

source IObservable<Mat>

A sequence of Mat objects representing the waveform of the signal from which to extract spike waveforms.

Returns

IObservable<SpikeWaveformCollection>

A sequence of SpikeWaveformCollection representing the spikes detected in each buffer of the signal waveform.