In many apps you have to generate data that does not look completely random. This project helps you generate that data.
- If you want to generate a chart, then use the
getNoise
serviceSignalGenerator
thing. This service returns a infotable with your data. This are the required parameters:scale
: how "contiguous" you want the signal to beamplitude
: how big is the dynamic part of the signaladditiveGradient
: Gain, or by how much you want each point to growoffset
: offset the signal from 0 (smallest data point)intervalStart
andintervalEnd
: the generated signal will sit between this two datessampleTime
: in ms, how often should the signal change
- If you want to update a property value based, using a timer, you can create a thing that inherits
SignalGeneratorTemplate
, and callgetNextValue
. The same parameters as above apply.
Take a look at SignalGeneratorDemo
.
It uses a Perlin Noise 1D generator.