functioncubicHermiteLinearExtrapolation
Interpolate using a cubic Hermite spline with linear extrapolation
Extends from Modelica.Icons.Function (Icon for functions).
Information
For x1 < x < x2, this function interpolates using cubic hermite spline. For x outside this interval, the function linearly extrapolates.
For how to use this function, see Buildings.Utilities.Math.Functions.Examples.CubicHermite.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x | Abscissa value | |
| Real | x1 | Lower abscissa value | |
| Real | x2 | Upper abscissa value | |
| Real | y1 | Lower ordinate value | |
| Real | y2 | Upper ordinate value | |
| Real | y1d | Lower gradient | |
| Real | y2d | Upper gradient |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | y | Interpolated ordinate value |
Revisions
-
September 27, 2011 by Michael Wetter:
First implementation.