.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-12-22T19:25:51Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos