Table of Contents

Class FrequencyFilter

Namespace
Bonsai.Dsp
Assembly
Bonsai.Dsp.dll

Represents an operator that filters frequencies in the input signal using a linear phase filter with the specified design parameters.

public class FrequencyFilter : Transform<Mat, Mat>
Inheritance
FrequencyFilter
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

FilterType

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

public FilterType FilterType { get; set; }

Property Value

FilterType

KernelLength

Gets or sets the size of the finite-impulse response kernel used to design the linear 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>)

Filters frequencies in the input signal using a linear phase 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 linear phase 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.