Table of Contents

Class CountNonZero

Namespace
Bonsai.Dsp
Assembly
Bonsai.Dsp.dll

Represents an operator that counts all the non-zero elements for each array in the sequence.

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

Methods

Process<TArray>(IObservable<TArray>)

Counts all the non-zero elements for each array in an observable sequence.

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

Parameters

source IObservable<TArray>

The sequence of array-like objects for which to count non-zero elements.

Returns

IObservable<int>

A sequence of int values representing the number of non-zero elements in each array.

Type Parameters

TArray

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