modelcheck_cubicHermiteSpline

Test problem for cubic hermite splines

Extends from TRANSFORM.Icons.Example (Icon for runnable examples).

Information

This example demonstrates the use of the function for cubic hermite interpolation and linear extrapolation. The example use interpolation with two different settings: One settings produces a monotone cubic hermite, whereas the other setting does not enforce monotonicity.


Adapted from Buildings Library

Parameters

TypeNameDefaultDescription
Realxd{-1, 1, 5, 6}Support points
Realyd{-1, 1, 2, 10}Support points
RealdDerivatives at the support points
RealdMonotoneDerivatives at the support points
BooleanensureMonotonicitytrue

Components

TypeNameDefaultDescription
RealxIndependent variable
RealyDependent variable without monotone interpolation
RealyMonotoneDependent variable with monotone interpolation
Realy_noLinExtrapDependent variable without monotone interpolation nor linear extrapolation
RealyMonotone_noLinExtrapDependent variable with monotone interpolation nor linear extrapolation
IntegeriInteger to select data interval
Utilities.ErrorAnalysis.UnitTestsunitTests