Table of Contents

Class Rescale

Namespace
Bonsai.Dsp
Assembly
Bonsai.Dsp.dll

Represents an operator that rescales each element in the sequence to a new range following the specified linear relationship.

public class Rescale : ArrayTransform
Inheritance
Rescale
Inherited Members

Properties

Max

Gets or sets the upper bound of the range of values in the input sequence.

public double Max { get; set; }

Property Value

double

Min

Gets or sets the lower bound of the range of values in the input sequence.

public double Min { get; set; }

Property Value

double

RangeMax

Gets or sets the upper bound of the range of values after the rescale operation.

public double RangeMax { get; set; }

Property Value

double

RangeMin

Gets or sets the lower bound of the range of values after the rescale operation.

public double RangeMin { get; set; }

Property Value

double

RescaleType

Gets or sets a value specifying the method used to rescale the values in the input sequence.

public RescaleMethod RescaleType { get; set; }

Property Value

RescaleMethod

Methods

Process(IObservable<double>)

Rescales every 64-bit floating-point number in an observable sequence to a new range following the specified linear relationship.

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 has been rescaled following the specified linear relationship.

Process<TArray>(IObservable<TArray>)

Rescales every individual element for all arrays in an observable sequence to a new range following the specified linear relationship.

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 has been rescaled following the specified linear relationship.

Type Parameters

TArray

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