Table of Contents

Class Decimate

Namespace
Bonsai.Dsp
Assembly
Bonsai.Dsp.dll

Represents an operator that decreases the sampling rate of the input signal by the specified factor.

public class Decimate : Combinator<Mat, Mat>
Inheritance
Decimate
Inherited Members

Constructors

Decimate()

Initializes a new instance of the Decimate class.

public Decimate()

Properties

BufferLength

Gets or sets the length of each output array. If set to zero, the length of each input buffer will be used.

public int BufferLength { get; set; }

Property Value

int

Downsampling

Gets or sets a value specifying the downsampling method used to decimate the input signal.

public DownsamplingMethod Downsampling { get; set; }

Property Value

DownsamplingMethod

Factor

Gets or sets the integral factor by which to divide the sampling rate of the input signal.

public int Factor { get; set; }

Property Value

int

KernelLength

Gets or sets the size of the finite-impulse response kernel used to design the downsampling filter.

[TypeConverter(typeof(KernelLengthConverter))]
public int KernelLength { get; set; }

Property Value

int

SampleRate

Gets or sets the sample rate of the input signal, in Hz.

public int SampleRate { get; set; }

Property Value

int

Methods

Process(IObservable<Mat>)

Decreases the sampling rate of the input signal by the specified factor.

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

Parameters

source IObservable<Mat>

A sequence of Mat objects representing the waveform of the signal to downsample.

Returns

IObservable<Mat>

A sequence of Mat objects representing the waveform of the downsampled signal.