Moving Number Calculation
Overview
Moving Number Calculation computes a rolling statistic over the last N input values (number or boolean mapped as 1/0).
Input
Input Type
stringSource value type for the rolling window.
Values:
number(default) — Numberboolean— Boolean (true= 1,false= 0)
Input Number
number requiredNumber fed into the calculation window. Shown when Input Type is number.
Default: 0
Input Boolean
booleanBoolean fed into the calculation window (true → 1, false → 0). Shown when Input Type is boolean.
Default: false
Amount to Calculate
integer requiredNumber of previous values to include in the calculation.
Range: 1 to 100000
Default: 10
Calculation Type
string requiredStatistic to compute. Note: MODE returns values in Output Array Values. Geometric Mean and Harmonic Mean ignore negative values.
Values:
MEAN(default) — MeanMEDIAN— MedianMODE— ModeMIN— MinimumMAX— MaximumRANGE— RangeMIDRANGE— Mid-range (max − min)GEOMETRIC— Geometric MeanHARMONIC— Harmonic MeanRMS— Root Mean SquareSTANDARD_DEVIATION— Standard DeviationVARIANCE— VarianceSUM— SumREGRESSION_CO— Regression Coefficient
Prefill With Value
booleanIf enabled, the calculation window is prefilled with Prefill Value until enough values are collected. For example, if Amount to Calculate is 5 and Prefill Value is 10, the first calculation uses [10, 10, 10, 10, {Input Number}].
Default: false
Prefill Value
numberValue used to prefill the window when Prefill With Value is enabled.
Default: 0
Output
Output Value
numberResult of the moving calculation.
Default: 0
Output Array Values
arrayArray of output values used in the calculation (for example for Mode).
Default: []