oph_get_index_array

Description

Behaviour

It returns a binary array with values from ‘start value’ from to ‘stop value’.

Parameters

  • input measure type: not used.
  • output measure type: Ophidia typing. Supported types are: ‘oph_double’; ‘oph_float’; ‘oph_long’; ‘oph_int’; ‘oph_short’; ‘oph_byte’.
  • start value: first value.
  • stop value: max value; it cannot be lower than start value.
  • stride: step; it is set to 1 by default.

Return type

Binary-array.

Examples

Build an array of integers from 1 to 5.

oph_get_index_array('','OPH_LONG',1,5)

Operation type

Simple.

Arguments

Argument name Type Mandatory Values Default Min/Max-value Min/Max-times
input measure type “oph_type” “yes”       “1” / “1”
output measure type “oph_type” “yes” “‘oph_double’|’oph_float’|’oph_int’|’oph_long’|’oph_short’|’oph_byte’”     “1” / “1”
start value “int” “yes”     / “1” / “1”
stop value “int” “yes”     / “1” / “1”
stride “int” “no”   “1” / “0” / “1”