Table of Contents

Class Abs

Namespace
Bonsai.Dsp
Assembly
Bonsai.Dsp.dll

Represents an operator that calculates the absolute value of each element in the sequence.

public class Abs : ArrayTransform
Inheritance
Abs
Inherited Members

Methods

Process(IObservable<decimal>)

Calculates the absolute value of each decimal number in the sequence.

public IObservable<decimal> Process(IObservable<decimal> source)

Parameters

source IObservable<decimal>

A sequence of decimal numbers.

Returns

IObservable<decimal>

A sequence of decimal numbers, where each value is greater than or equal to zero.

Process(IObservable<double>)

Calculates the absolute value of each 64-bit floating-point number in the sequence.

public IObservable<double> Process(IObservable<double> source)

Parameters

source IObservable<double>

A sequence of 64-bit floating-point numbers.

Returns

IObservable<double>

A sequence of 64-bit floating-point numbers, where each value is greater than or equal to zero.

Process(IObservable<short>)

Calculates the absolute value of each 16-bit signed integer in the sequence.

public IObservable<short> Process(IObservable<short> source)

Parameters

source IObservable<short>

A sequence of 16-bit signed integer values.

Returns

IObservable<short>

A sequence of 16-bit signed integer values, where each value is greater than or equal to zero.

Process(IObservable<int>)

Calculates the absolute value of each 32-bit signed integer in the sequence.

public IObservable<int> Process(IObservable<int> source)

Parameters

source IObservable<int>

A sequence of 32-bit signed integer values.

Returns

IObservable<int>

A sequence of 32-bit signed integer values, where each value is greater than or equal to zero.

Process(IObservable<long>)

Calculates the absolute value of each 64-bit signed integer in the sequence.

public IObservable<long> Process(IObservable<long> source)

Parameters

source IObservable<long>

A sequence of 64-bit signed integer values.

Returns

IObservable<long>

A sequence of 64-bit signed integer values, where each value is greater than or equal to zero.

Process(IObservable<sbyte>)

Calculates the absolute value of each 8-bit signed integer in the sequence.

public IObservable<sbyte> Process(IObservable<sbyte> source)

Parameters

source IObservable<sbyte>

A sequence of 8-bit signed integer values.

Returns

IObservable<sbyte>

A sequence of 8-bit signed integer values, where each value is greater than or equal to zero.

Process(IObservable<float>)

Calculates the absolute value of each 32-bit floating-point number in the sequence.

public IObservable<float> Process(IObservable<float> source)

Parameters

source IObservable<float>

A sequence of 32-bit floating-point numbers.

Returns

IObservable<float>

A sequence of 32-bit floating-point numbers, where each value is greater than or equal to zero.

Process<TArray>(IObservable<TArray>)

Calculates the absolute value of individual elements for all arrays in the sequence.

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 multi-channel array values, where each element of the array is greater than or equal to zero.

Type Parameters

TArray

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