nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Math.SignalProcessing / SignalGenerator

SignalGenerator

Full name Microsoft.VisualBasic.Math.SignalProcessing.Source.Generators.SignalGenerator Assembly Microsoft.VisualBasic.Math.SignalProcessing Members 8

the fluent builder / combiner for synthesizing complex signals out of basis functions. It is itself a BasisFunction so it can be nested inside other combinators, and it can be sampled into a GeneralSignal or a Double array.

00 Remarks

Example:

 Dim sig = New SignalGenerator() _
     .Add(New Linear With {.Amp = 0.1, .Scale = 10}) _
     .Add(New Sine With {.Amp = 2, .Scale = 5, .Center = 1}) _
     .Add(New GaussianNoise With {.Amp = 0.2})
 Dim data = sig.Sample(0, 100, 1000)
 

01 Syntax

Microsoft.VisualBasic.Math.SignalProcessing.Source.Generators.SignalGenerator

02 Methods

NameOverloadsSummary
.ctor 1 start a generator from an optional initial basis function.
Add 1 add a basis function (point-wise +).
Subtract 1 subtract a basis function (point-wise -).
Multiply 1 multiply by a basis function (point-wise *).
Divide 1 divide by a basis function (point-wise /).
Evaluate 1
Sample 1

03 Properties

NameOverloadsSummary
Seed 1 the seed of the global RNG, for reproducible noise.

04 Members

method .ctor #

start a generator from an optional initial basis function.

Parameters
NameTypeDescription
initialBasisFunction

the first term (defaults to a zero signal).

method Add #

add a basis function (point-wise +).

method Subtract #
Subtract(BasisFunction)

subtract a basis function (point-wise -).

method Multiply #
Multiply(BasisFunction)

multiply by a basis function (point-wise *).

method Divide #

divide by a basis function (point-wise /).

property Seed #
Seed

the seed of the global RNG, for reproducible noise.

method Evaluate #
Evaluate(Double)
method Sample #
Sample(IEnumerable(Of Double))