Visible to Intel only — GUID: GUID-3866C5E9-A734-4B34-9E54-B53BAD2E97EF
Visible to Intel only — GUID: GUID-3866C5E9-A734-4B34-9E54-B53BAD2E97EF
Data Fitting Usage Examples
The examples below illustrate several operations that you can perform with Data Fitting routines.
You can get source code for similar examples in the .\examples\datafittingcsubdirectory of the Intel® oneAPI Math Kernel Library (oneMKL) installation directory.
The following example demonstrates the construction of a linear spline using Data Fitting routines. The spline approximates a scalar function defined on non-uniform partition. The coefficients of the spline are returned as a one-dimensional array:
Example of Linear Spline Construction
The following example demonstrates cubic spline-based interpolation using Data Fitting routines. In this example, a scalar function defined on non-uniform partition is approximated by Bessel cubic spline using not-a-knot boundary conditions. Once the spline is constructed, you can use the spline to compute spline values at the given sites. Computation results are packed by the Data Fitting routine in row-major format.
Example of Cubic Spline-Based Interpolation
The following example demonstrates how to compute indices of cells containing given sites. This example uses uniform partition presented with two boundary points. The sites are in the ascending order.