oph_normalize

Description

Behaviour

Normalizes a measure array performing the specified operation on ‘count’ 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 operator
    • ‘oph_max’: compute the maximum and divide each element by it (default);
    • ‘oph_avg’: compute the mean and substract each element by it (anomaly).
  • count: number of elements to be reduced. Default value (0) corresponds to the entire array.
  • 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 anomaly with respect to the mean value on 30 measures.

oph_normalize('OPH_DOUBLE','OPH_DOUBLE',measure,'OPH_AVG',1,30)

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 “binary-array” “yes”       “1” / “1”
operator name “oph_operator” “no” “‘oph_max’|’oph_avg’” “‘oph_max’”   “0” / “1”
count “long-long” “no”   “0” “array length” / “array length” “0” / “1”
missingvalue “double” “no” “NAN”     “0” / “1”