oph_rotate

Description

Behaviour

It rotates the values inside a multidimensional measure 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: Ophidia typing. Supported types are: ‘oph_double’; ‘oph_float’; ‘oph_long’; ‘oph_int’; ‘oph_short’; ‘oph_byte’.
  • measure: input measure.
  • offset: number of movements of 1 measure. If >0, the shift will be to the right. If <0, the shift will be to the left. With 0, there will be no shift.

Return type

Binary-array.

Examples

Rotate to the right of the values inside a multidimensional measure array by 2.

oph_rotate('OPH_DOUBLE','OPH_DOUBLE',measure,2)

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”
offset “long-long” “no”   “0”   “0” / “1”