Loading

MUSIGMA

gts

The MUSIGMA function calculates the mean and the standard deviation of a Geo Time Series. It consumes two parameters from the top of the stack: a boolean (to choose if Bessel's correction should be applied on the standard deviation) and a numeric GTS, and it pushes onto the stack its mean (mu) and its standard deviation (sigma).

MUSIGMA is available since version 1.0.0.

See also

Signatures

Examples

NEWGTS 100 NaN NaN NaN 10 ADDVALUE 200 NaN NaN NaN 9 ADDVALUE 300 NaN NaN NaN 8 ADDVALUE 400 NaN NaN NaN 7 ADDVALUE 500 NaN NaN NaN 6 ADDVALUE true MUSIGMA

Examples

<' GTS = NEWGTS() ADDVALUE(GTS, 100, NaN, NaN, NaN, 10) ADDVALUE(GTS, 200, NaN, NaN, NaN, 9) ADDVALUE(GTS, 300, NaN, NaN, NaN, 8) ADDVALUE(GTS, 400, NaN, NaN, NaN, 7) ADDVALUE(GTS, 500, NaN, NaN, NaN, 6) (mu,sigma) = MUSIGMA(GTS, false) return mu,sigma '> FLOWS