functioninterpolate_wLimit

Interpolate in a vector

Inputs

TypeNameDefaultDescription
Real[:]xAbscissa table vector (strict monotonically increasing values required)
Real[size(x, 1)]yOrdinate table vector
RealxiDesired abscissa value
IntegeriLast1Index used in last search
BooleanuseBoundfalse= true then value outside bounds are constant

Outputs

TypeNameDefaultDescription
RealyiOrdinate value corresponding to xi
IntegeriNew1xi is in the interval x[iNew] <= xi < x[iNew+1]