functionsearchIndex1D
Find the index value i in a vector x for the desired abscissa a so that x[i] < a < x[i+1]
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:] | x | Abscissa table vector (strict monotonically increasing values required) | |
| Real | xi | Desired abscissa value | |
| Integer | iLast | 1 | Index used in last search |
| Boolean | ensureMonotonicity | false | chech that the vector x is strict monotonically increasing) |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | test | ||
| Integer | iNew | 1 | xi is in the interval x[iNew] <= xi < x[iNew+1] |