Quantcast
Channel: Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 2652

Cubic spline interpolation on 3 samples

$
0
0

Hello,

I'm using the data fitting functions of MKL for cubic spline interpolation (DF_PP_CUBIC, DF_PP_DEFAULT) using a not-a-knot condition (DF_BC_NOT_A_KNOT). In theory at least 4 samples are needed to perform this kind of interpolation, which is the unique cubic interpolation polynomial in this case.

My question is: What is the result of the MKL routine in case of 3 samples, which can also be executed without error code? Is this undefined behavior?

The MATLAB routine interp1 performs a simple quadratic polynomial interpolation for example. But this result differs from MKL's.

Thanks for clarification


Viewing all articles
Browse latest Browse all 2652

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>