oph_aggregate_operator

Description

Behaviour

It aggregates different measure arrays performing the specified operation on each column of array elements.

Parameters

  • input measure type: Ophidia typing. Supported types are: ‘oph_double’; ‘oph_float’; ‘oph_long’; ‘oph_int’; ‘oph_short’; ‘oph_byte’.
  • output measure type: Ophidia typing. Supported types are: ‘oph_double’; ‘oph_float’; ‘oph_long’; ‘oph_int’; ‘oph_short’; ‘oph_byte’.
  • measure: input measure.
  • operator name: type of aggregation
    • ‘oph_count’: computes the number of elements;
    • ‘oph_max’: computes the maximum (default);
    • ‘oph_min’: computes the minimum;
    • ‘oph_avg’: computes the mean;
    • ‘oph_sum’: computes the sum.
  • missingvalue : value to be considered as missing value; by default it is NAN (for “oph_double” and “oph_float”).

Return type

Binary-array.

Examples

Compute the mean value.

oph_aggregate_operator('OPH_DOUBLE','OPH_DOUBLE',measure,'OPH_AVG')

Operation type

Aggregate.

Arguments

Argument name Type Mandatory Values Default Min/Max-value Min/Max-times
input data type “oph_type” “yes” “‘oph_double’|’oph_float’|’oph_int’|’oph_long’|’oph_short’|’oph_byte’”     “1” / “1”
output data 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_max’”   “0” / “1”
missingvalue “double” “no” “NAN”     “0” / “1”