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.
SignalGenerator
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
| Name | Overloads | Summary |
|---|---|---|
| .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
| Name | Overloads | Summary |
|---|---|---|
| Seed | 1 | the seed of the global RNG, for reproducible noise. |
04 Members
#ctor(BasisFunction)
start a generator from an optional initial basis function.
Parameters
| Name | Type | Description |
|---|---|---|
initial | BasisFunction | the first term (defaults to a zero signal). |
Add(BasisFunction)
add a basis function (point-wise +).
Subtract(BasisFunction)
subtract a basis function (point-wise -).
Multiply(BasisFunction)
multiply by a basis function (point-wise *).
Divide(BasisFunction)
divide by a basis function (point-wise /).
Seed
the seed of the global RNG, for reproducible noise.
Evaluate(
Double)Sample(
IEnumerable(Of Double))