Table of Contents

Class Difference

Namespace
Bonsai.Dsp
Assembly
Bonsai.Dsp.dll

Represents an operator that calculates the Nth difference between adjacent samples in the input signal.

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

Constructors

Difference()

Initializes a new instance of the Difference class.

public Difference()

Properties

Order

Gets or sets the number of times to apply the difference operator.

public int Order { get; set; }

Property Value

int

Methods

Process(IObservable<Mat>)

Calculates the Nth difference between adjacent samples in the input signal.

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

Parameters

source IObservable<Mat>

A sequence of Mat objects representing the waveform of the signal for which to compute the difference between adjacent samples.

Returns

IObservable<Mat>

A sequence of Mat objects representing the differences between adjacent samples in the input signal.

Process(IObservable<Point2f>)

Calculates the Nth difference between adjacent values in an observable sequence.

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

Parameters

source IObservable<Point2f>

A sequence of 2D points with single-precision floating-point coordinates.

Returns

IObservable<Point2f>

A sequence of 2D vectors representing the differences between adjacent points in the original sequence.

Process(IObservable<double>)

Calculates the Nth difference between adjacent values in an observable sequence.

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

Parameters

source IObservable<double>

A sequence of floating-point numbers.

Returns

IObservable<double>

A sequence of floating-point numbers representing the differences between adjacent values in the original sequence.