Behaviour
It reduces a measure array performing the specified operation on blocks of count elements. It supports multiple implicit dimension.
Parameters
Return type
Binary-array.
Examples
Reduces a measure array computing the mean on groups of 10 elements with the internal dimension of size 15 and the external to-be-reduced one of size 10.
oph_reduce2('OPH_DOUBLE','OPH_DOUBLE',measure,'OPH_AVG',10,15,10)
Operation type
Reduce.
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” | |||
operator name | “oph_operator” | “no” | “‘oph_count’|’oph_max’|’oph_min’|’oph_avg’|’oph_sum’|’oph_std’|’oph_var’|’oph_cmoment’|’oph_acmoment’|’oph_rmoment’|’oph_armoment’|’oph_arg_max’|’oph_arg_min’” | “‘oph_max’” | “0” / “1” | |
count | “double” | “no” | “0” | “array length” / “array length” | “0” / “1” | |
block size | “long-long” | “no” | “1” | “array length” / “array length” | “0” / “1” | |
size | “long-long” | “no” | “0” | “array length” / “array length” | “0” / “1” | |
order | “double” | “no” | “2” | “0” / “1” | ||
missingvalue | “double” | “no” | “NAN” | “0” / “1” |