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_max_abs’: compute the maximum of absolute values and divide each element by it (normalize the array in the interval [-1, 1]);
    • ‘oph_max_min’: normalize the array in the interval [0, 1];
    • ‘oph_avg’: compute the mean value and substract each element by it (anomaly).
    • ‘oph_avg_rel’: compute the mean value, substract each element by it and divide the result by the average (relative 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',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_max_abs’|’oph_max_min’|’oph_avg’|’oph_avg_rel’” “‘oph_max’”   “0” / “1”
count “long-long” “no”   “0” “array length” / “array length” “0” / “1”
missingvalue “double” “no”   “NAN”   “0” / “1”