Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


Harris Geospatial / Docs Center / Libraries / JBIU / BETWEEN

BETWEEN

BETWEEN

Name


    BETWEEN

Purpose


    Determines if the argument lies between the bounds.

Category


    Math

Calling Sequence


    Result = BETWEEN(Lowerbound, Argument, Upperbound)

Inputs


    Lowerbound: Scalar or array of lower bounds.
    Argument: Scalar or array of numerical argument.
    Upperbound: Scalar or array of upper bounds.

Keyword Parameters


    GTSTRICT: Argument must be strictly greater than Lowerbound,
                rather than greater or equal to.
    LTSTRICT: Argument must be strictly less than Upperbound,
                rather than less or equal to.

Outputs


    Outputs 1 for any element where Argument is between Lowerbound and
    Upperbound, and 0 for all other elements. Values equal to Lowerbound
    and Upperbound return 1 unless overridden by /GTSTRICT and/or /LTSTRICT.
    Each of the inputs may be either a scalar or an array, but if more than
    one are arrays then they must have the same numbers of elements.

Example


    IDL> print, between(2.5, [0,1,2,3,4], 7.)
      0 0 0 1 1

Modification History


    Written by: Jeremy Bailin
    18 July 2009 Public release in JBIU



© 2017 Exelis Visual Information Solutions, Inc. |  Legal
My Account    |    Buy    |    Contact Us