Loading

ZSCORE


gts
Since v1.0.0
Available on all platforms

The 'ZSCORE' function consumes a flag, then normalizes a Geo Time Series™ or a LIST of Geo Time Series™ that are below by replacing their values by their Z-score.

The flag indicates whether to use the mean (False), or the median (True) to calculate the Z-score.

The Z-score of a value represents the number of standard deviations (or median absolute deviations) it is away from the mean (or the median).

If the GTS isn’t of type DOUBLE or if the deviation equals 0, an exception is raised.

Signature

Examples

[ NEWGTS 100 NaN NaN NaN 10.0 ADDVALUE 200 NaN NaN NaN 9.0 ADDVALUE 300 NaN NaN NaN 8.0 ADDVALUE 400 NaN NaN NaN 7.0 ADDVALUE 500 NaN NaN NaN 6.0 ADDVALUE ] T ZSCORE