oph_operator

Description

Behaviour

It applies an operator on the whole measure array.

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 operator
    • ‘oph_count’: computes the number of actual values (not missing);
    • ‘oph_max’: computes the maximum (default);
    • ‘oph_min’: computes the minimum;
    • ‘oph_avg’: computes the mean of all elements;
    • ‘oph_sum’: computes the sum of all elements;
    • ‘oph_std’: computes the standard deviation;
    • “oph_cmoment”: computes the central moment;
    • “oph_acmoment”: computes the absolute central moment;
    • “oph_rmoment”: computes the raw moment;
    • “oph_armoment”: computes the absolute raw moment;
    • “oph_quantile”: computes the quantile.
  • hierarchy: it defines a hierarchy [not used].
  • order: order used in evaluation the moments or value of the quantile in range [0, 1].
  • 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 of all elements.

oph_operator('OPH_DOUBLE','OPH_DOUBLE',measure,'OPH_AVG')

Operation type

Reduce.

Arguments

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_cmoment’|’oph_acmoment’|’oph_rmo ment’|’oph_armoment’” “‘oph_max’”   “0” / “1”
hierarchy “string” “no” “‘oph_all’” “‘oph_all’”   “0” / “1”
order “double” “no”   “2” / “0” / “1”
missingvalue “double” “no” “NAN”     “0” / “1”