Table of Contents

Class Magnitude

Namespace
Bonsai.Dsp
Assembly
Bonsai.Dsp.dll

Represents an operator that calculates the magnitude of 2D vector elements in the sequence.

public class Magnitude : ArrayTransform
Inheritance
Magnitude
Inherited Members

Methods

Process<TArray>(IObservable<Tuple<TArray, TArray>>)

Calculates the magnitude of pairs of one-dimensional arrays in an observable sequence, where each pair represents a 2D vector element.

public IObservable<TArray> Process<TArray>(IObservable<Tuple<TArray, TArray>> source) where TArray : Arr

Parameters

source IObservable<Tuple<TArray, TArray>>

Returns

IObservable<TArray>

A sequence of single-channel arrays where each element represents the magnitude of the corresponding 2D vector.

Type Parameters

TArray

The type of the array-like objects in the source sequence.

Process<TArray>(IObservable<TArray>)

Calculates the magnitude of 2D vector elements in an observable sequence.

public override IObservable<TArray> Process<TArray>(IObservable<TArray> source) where TArray : Arr

Parameters

source IObservable<TArray>

A sequence of two-channel arrays where each element represents a 2D vector.

Returns

IObservable<TArray>

A sequence of single-channel arrays where each element represents the magnitude of the corresponding 2D vector.

Type Parameters

TArray

The type of the array-like objects in the source sequence.