SIGGEN syntax
Syntax is (without the spaces):
function amplitude +/- y-offset @ period +/- x-offset (in seconds)
e.g. sin10-30@600-3600
— sinewave of amplitudes -10 and 10; offset by -30 (i.e. between -40 and -20); period of 600 seconds; offset by -3600 seconds (1 hr)*
Function supported are:
- sin (sine)
- cos (cosine)
- saw (saw wave)
- sq (square wave)
- sc (S-curve)
To create just static trends of a single number write
siggen/7
Tip if you would like to trend:
eg: siggen/sin4@300
eg: siggen/saw1000000@30d+5d - Max of 1000000 starting at 0, 30 days off set by 5d (note -5d is invalid)
calc/ADD(rand20~1@2000000)
Wave Generation
Syntax: function amplitude +/- y-offset @ period +/- x-offset (in seconds)
Function supported are:
- sin (sine)
- cos (cosine)
- saw (saw wave)
- sq (square wave)
- sc (S-curve)
EG: siggen/sin10-30@1d-1h → Sine Wave of amplitude 10 with a -30 y-axis offset. A period of 1d with 1d x-axis offset.
Ramp Generation
Syntax: function amplitude @ CyclicTimePeriod
CyclicTimePeriod: day, bday, month or year
EG: siggen/ramp10@day → Ramp Wave of amplitude 10. A period of 1d.
Random Value Signal
Syntax: function average ~ range @ smoothingFactor
EG: siggen/rand10~5@3600000 → Random Value signal with a mean of 10 and a range of +/- 5. A smoothing factor of 3600000 (default).
Constant Value Generation
Syntax: value
EG: siggen/10 → A flat signal with value 10.