functionsearchIndex1D

Find the index value i in a vector x for the desired abscissa a so that x[i] < a < x[i+1]

Inputs

TypeNameDefaultDescription
Real[:]xAbscissa table vector (strict monotonically increasing values required)
RealxiDesired abscissa value
IntegeriLast1Index used in last search
BooleanensureMonotonicityfalsechech that the vector x is strict monotonically increasing)

Outputs

TypeNameDefaultDescription
Realtest
IntegeriNew1xi is in the interval x[iNew] <= xi < x[iNew+1]