Sine1D class

Sine wave generator, optional with noise added.

Constructors

Sine1D(int npoints, double amplitude, double phase, int nperiods, double noise, double offset)
Computes the sine function f(x) = offset + amplitude*(sin(x+phase) + noiseValue), where noiseValue = noise * amplitude * (2 * rand.nextDouble() - 1.0).sign The resulting array of size npoints will contain nperiods (2*pi) of a sine wave with the specified amplitude and phase . Set noise to a desired fraction of amplitude if you want to simulate a "noisy" sine signal instead of a pure sine wave.

Properties

array → Float64List
Returns the computed array containing the sine wave
read-only
xValues → Float64List
Returns the "x" values corresponding to the sine array values.
read-only
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited