Table of Contents

Class Reduce

Namespace
Bonsai.Dsp
Assembly
Bonsai.Dsp.dll

Represents an operator that reduces every array in the sequence to a 1D vector using the specified operation.

public class Reduce : ArrayTransform
Inheritance
Reduce
Inherited Members

Properties

Axis

Gets or sets the dimension along which to reduce the array.

public int Axis { get; set; }

Property Value

int

Operation

Gets or sets a value specifying the reduction operation to be applied.

public ReduceOperation Operation { get; set; }

Property Value

ReduceOperation

Methods

Process<TArray>(IObservable<TArray>)

Reduces every array in an observable sequence to a 1D vector using the specified operation.

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

Parameters

source IObservable<TArray>

A sequence of multi-channel array values.

Returns

IObservable<TArray>

A sequence of 1D vector arrays storing the results of the reduction operation.

Type Parameters

TArray

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