From 0749682ff727fc2562248718645fbef309ac6028 Mon Sep 17 00:00:00 2001
From: hcasperfu
Note that if xSup
and ySup
only depend on parameters
-or constants, then
-
-IBPSA.Utilities.Math.Functions.cubicHermiteLinearExtrapolation
-will be more efficient.
+or constants and will not change during the simulation,
+it is more efficient to first call
+
+IBPSA.Utilities.Math.Functions.splineDerivatives
+to find the derivatives, and then call
+
+IBPSA.Utilities.Math.Functions.interpolate to perform the interpolation.
+This way the derivatives only need to be computed once upon initialisation,
+not at each step during the simulation.
+See the example implemented in
+
+IBPSA.Utilities.Math.Functions.Examples.Interpolate.
+
In contrast to the function Modelica.Math.Vectors.interpolate