.IDEAS.Utilities.Math.Functions.searchIndex1D

Information

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

Interface

function searchIndex1D
  input Real x[:] "Abscissa table vector (strict monotonically increasing values required)";
  input Real xi "Desired abscissa value";
  input Integer iLast = 1 "Index used in last search";
  input Boolean ensureMonotonicity = false "chech that the vector x is strict monotonically increasing)";
  output Real test;
  output Integer iNew = 1 "xi is in the interval x[iNew] <= xi < x[iNew+1]";
end searchIndex1D;

Generated at 2024-11-21T19:25:40Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos