oph_arg_max_array

Description

Behaviour

Returns 1 if the maximum between the values in the same position in measure array a and array b is in array a; 2 otherwise.

Parameters

  • input measure type: Ophidia typing. Supported types are pairs of: ‘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 a: first input measure.
  • measure b: second input measure.
  • missingvalue : value to be considered as missing value; by default it is NAN (for “oph_double” and “oph_float”).

Return type

Binary-array.

Examples

Extract the index of the maximum between the values in the same position in measure array a and array b.

oph_arg_max_array('OPH_DOUBLE|OPH_DOUBLE','OPH_DOUBLE',measure_a,measure_b)

Operation type

Simple.

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 a “binary-array” “yes”       “1” / “1”
measure b “binary-array” “yes”       “1” / “1”
missingvalue “double” “no” “NAN”     “0” / “1”