Table of Contents

Class Phase

Namespace
Bonsai.Dsp
Assembly
Bonsai.Dsp.dll

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

public class Phase : ArrayTransform
Inheritance
Phase
Inherited Members

Methods

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

Calculates the phase 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 phase 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 phase 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 phase of the corresponding 2D vector.

Type Parameters

TArray

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