Table of Contents

Class Extrema

Namespace
Bonsai.Dsp
Assembly
Bonsai.Dsp.dll

Represents an operator that finds the global minimum and maximum of each array in the sequence.

[Combinator]
[WorkflowElementCategory(ElementCategory.Transform)]
public class Extrema
Inheritance
Extrema
Inherited Members

Methods

Process<TArray>(IObservable<TArray>)

Finds the global minimum and maximum of each array in an observable sequence.

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

Parameters

source IObservable<TArray>

A sequence of multi-channel array values.

Returns

IObservable<ArrayExtrema>

A sequence of ArrayExtrema values, representing the minimum and maximum of the 2D array, and their corresponding locations.

Type Parameters

TArray

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

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

Finds the global minimum and maximum of each array in an observable sequence, where each array is paired with a mask where non-zero values indicate which elements in the array should be considered when computing the extrema.

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

Parameters

source IObservable<Tuple<TArray, TMask>>

A sequence of array pairs, where the first array contains the elements over which to find the global minimum and maximum, and the second array contains the operation mask, where non-zero values indicate which elements in the first array should be considered, and which should be ignored, in the computation.

Returns

IObservable<ArrayExtrema>

A sequence of ArrayExtrema values, representing the minimum and maximum of the 2D array, and their corresponding locations.

Type Parameters

TArray

The type of the array-like objects over which to find the extrema.

TMask

The type of the array-like objects used as an operation mask.