Class Reduce
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
Operation
Gets or sets a value specifying the reduction operation to be applied.
public ReduceOperation Operation { get; set; }
Property Value
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.