Table of Contents

Class Range

Namespace
Bonsai.Dsp
Assembly
Bonsai.Dsp.dll

Represents an operator that generates a sequence of buffers filled with a specified range of numbers.

public class Range : Source<Mat>
Inheritance
Range
Inherited Members

Properties

BufferLength

Gets or sets the number of samples in each output buffer.

public int BufferLength { get; set; }

Property Value

int

Depth

Gets or sets the bit depth of each element in the output buffer.

[TypeConverter(typeof(Range.DepthConverter))]
public Depth Depth { get; set; }

Property Value

Depth

End

Gets or sets the exclusive upper bound of the range.

public double End { get; set; }

Property Value

double

Start

Gets or sets the inclusive lower bound of the range.

public double Start { get; set; }

Property Value

double

Methods

Generate()

Generates an observable sequence of buffers filled with a specified range of numbers.

public override IObservable<Mat> Generate()

Returns

IObservable<Mat>

A sequence of Mat objects representing fixed-size buffers linearly filled with values between the inclusive lower bound and exclusive upper bound.

Generate<TSource>(IObservable<TSource>)

Generates an observable sequence of buffers filled with a specified range of numbers, and where each new buffer is emitted only when an observable sequence emits a notification.

public IObservable<Mat> Generate<TSource>(IObservable<TSource> source)

Parameters

source IObservable<TSource>

The sequence containing the notifications used for emitting sample buffers.

Returns

IObservable<Mat>

A sequence of Mat objects representing fixed-size buffers linearly filled with values between the inclusive lower bound and exclusive upper bound.

Type Parameters

TSource

The type of the elements in the source sequence.