.TRANSFORM.Math.interpolate_wLimit

Information

Extension of the Modelica.Math.Vectors.interpolate to allow a hard limit at the bounds of the input data.

Interface

function interpolate_wLimit
  input Real x[:] "Abscissa table vector (strict monotonically increasing values required)";
  input Real y[size(x, 1)] "Ordinate table vector";
  input Real xi "Desired abscissa value";
  input Integer iLast = 1 "Index used in last search";
  input Boolean useBound = false "= true then value outside bounds are constant";
  output Real yi "Ordinate value corresponding to xi";
  output Integer iNew = 1 "xi is in the interval x[iNew] <= xi < x[iNew+1]";
end interpolate_wLimit;

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