Table of Contents

Class Butterworth

Namespace
Bonsai.Dsp
Assembly
Bonsai.Dsp.dll

Represents an operator that filters frequencies in the input signal using a Butterworth infinite-impulse response filter with the specified design parameters.

public class Butterworth : Transform<Mat, Mat>
Inheritance
Butterworth
Inherited Members

Properties

Cutoff1

Gets or sets the first cutoff frequency, in Hz, applied to the input signal.

public double Cutoff1 { get; set; }

Property Value

double

Cutoff2

Gets or sets the second cutoff frequency, in Hz, applied to the input signal.

public double Cutoff2 { get; set; }

Property Value

double

FilterOrder

Gets or sets the order of the IIR filter.

public int FilterOrder { get; set; }

Property Value

int

FilterType

Gets or sets the type of filter to apply on the signal.

public FilterType FilterType { get; set; }

Property Value

FilterType

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>)

Filters frequencies in the input signal using a Butterworth infinite-impulse response filter with the specified design parameters.

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

Parameters

source IObservable<Mat>

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

Returns

IObservable<Mat>

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

Process(IObservable<double>)

Filters frequencies in the input signal using a Butterworth infinite-impulse response filter with the specified design parameters.

public IObservable<double> Process(IObservable<double> source)

Parameters

source IObservable<double>

A sequence of floating-point numbers representing the waveform of the signal to filter.

Returns

IObservable<double>

A sequence of floating-point numbers representing the waveform of the filtered signal.