Behaviour
It computes the moving average operation on each element of the measure array. Integer values will be automatically converted to real values. NaN values in the input array will be ignored. Available operations are:
Parameters
Return type
Binary-array.
Examples
Compute SMA of each measure.
oph_moving_avg('OPH_DOUBLE', 'OPH_DOUBLE',measure, 2, 'OPH_SMA')
Operation type
Simple.
Argument name | Type | Mandatory | Values | Default | Min/Max-value | Min/Max-times |
---|---|---|---|---|---|---|
input measure type | “oph_type” | “yes” | “‘oph_double’|’oph_float’|’oph_int’|’oph_long’|’oph_short’|’oph_byte’” | “1” / “1” | ||
output measure type | “oph_type” | “yes” | “‘oph_double’|’oph_float’|’oph_int’|’oph_long’|’oph_short’|’oph_byte’” | “1” / “1” | ||
measure | “binary-array” | “yes” | “1” / “1” | |||
average parameter | “double” | “no” | “1” | “0” / “1” | ||
operation | “string” | “no” | “‘oph_sma’|’op_ewma’| | ‘oph_sma’” | “0” / “1” |