oph_count_array

Description

Behaviour

It counts the number of elements into an 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: not used.
  • measure: first input measure.
  • include missing values : use ‘1’ (default) to include missing values, use ‘0’ to exclude them.
  • missingvalue : value to be considered as missing value; by default it is NAN (for “oph_double” and “oph_float”).

Return type

Long-long.

Examples

Count the number of float elements into the array.

oph_count_array('OPH_FLOAT','',measure)

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”       “1” / “1”
measure “binary-array” “yes”       “1” / “1”
include missing values “bool” “no” “0|1” “1”   “0” / “1”
missingvalue “double” “no” “NAN”     “0” / “1”