oph_gsl_quantile

Description

Behaviour

It computes the quantile(s) specified as q1,q2,... on the elements of the measure array ordered in an ascending way.

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.
  • q1: order of one mandatory quantile.
  • q: one or more orders of one or more quantiles.
  • order safe flag:
    • with ORDER_SAFE_FLAG_SET (default), the input will be ordered;
    • with ORDER_SAFE_FLAG_UNSET, the input is considered already ordered in ascending way,
    • with INDEX the indexes of the nearest values to quantiles are returned.

Return type

Binary-array.

Examples

Compute quantiles of order 0.10, 0.60 and 0.80.

oph_gsl_quantile('OPH_DOUBLE','OPH_DOUBLE',measure,0.10,0.60,0.80)

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”
q1 “double” “yes”       “1” / “1”
q “double” “no”       “0” /
order safe flag “string” “no” “‘ORDER_SAFE_FLAG_SET’|’O RDER_SAFE_FLAG_UNSET’|’INDEX’” “‘ORDER_SAFE_FLAG_SET’”   “0” / “1”