SamplesGenerator class

Samples Generator.

Constructors

SamplesGenerator(ScaleDouble inputScale, double f(double n), int length, [ScaleDouble? outputScale])

Properties

f double Function(double n)
Function that generates the output value.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
inputScale ScaleDouble
The input scale.
getter/setter pair
length int
Number of samples to generate.
getter/setter pair
outputScale ScaleDouble
The output scale. Default to 0-1 (ScaleDouble.ZERO_TO_ONE).
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generateSampleAtIndex(int index) SampleFloat32x4
Generates the samples at index.
generateSampleByInput(double input) SampleFloat32x4
Generates the sample for input.
generateSamples({int stepSize = 1}) List<SampleFloat32x4>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited