Table of Contents

Class Average

Namespace
Bonsai.Dsp
Assembly
Bonsai.Dsp.dll

Represents an operator that calculates the average, or arithmetic mean, of each channel for all the arrays in the sequence.

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

Methods

Process<TArray>(IObservable<TArray>)

Calculates the average, or arithmetic mean, of each channel for all the arrays in an observable sequence.

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

Calculates the average, or arithmetic mean, of each channel for all the arrays in an observable sequence, where each array is paired with a mask where non-zero values indicate which elements in the array should be averaged.