Table of Contents

Class Pow

Namespace
Bonsai.Dsp
Assembly
Bonsai.Dsp.dll

Represents an operator that raises every element in the sequence to the specified power.

public class Pow : ArrayTransform
Inheritance
Pow
Inherited Members

Properties

Power

Gets or sets the specified power.

public double Power { get; set; }

Property Value

double

Methods

Process(IObservable<double>)

Raises every 64-bit floating-point number in an observable sequence to the specified power.

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 represents a number raised to the specified power. See Pow(double, double).

Process<TArray>(IObservable<TArray>)

Raises every individual element for all arrays in an observable sequence to the specified power.

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 represents a value raised to the specified power.

Type Parameters

TArray

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