oph_find

Description

Behaviour

It finds the number of occurences into a measure array that are inside the interval [value-distance;value+distance].

Parameters

  • input measure type: Ophidia typing. Supported types are: ‘oph_double’; ‘oph_float’; ‘oph_long’; ‘oph_int’; ‘oph_short’; ‘oph_byte’.
  • output measure type: not used.
  • measure: input measure.
  • value: center of the interval.
  • distance: half-width of the interval.

Return type

Long-long.

Examples

Find the number of occurences into measure array that are inside the interval [5;15].

oph_find('OPH_DOUBLE','',measure,10,5)

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”       “1” / “1”
measure “binary-array” “yes”       “1” / “1”
value “double” “yes”       “1” / “1”
distance “long-long” “no”   “0”   “0” / “1”