why does not "pchip" requires derivative values as input
Ältere Kommentare anzeigen
In my understanding, Piecewise Cubic Hermite polynomials requires both values and derivative values at each point.

Matlab "pchip", https://www.mathworks.com/help/matlab/ref/pchip.html, is exactly Piecewise Cubic Hermite polynomials, but does not require derivatives.
So why no derivatives values are needed as inputs for "pchip"
Antworten (1)
Bruno Luong
am 20 Okt. 2023
Bearbeitet: Bruno Luong
am 20 Okt. 2023
0 Stimmen
Since the derivatives are computed internally as with general polynomial picewise functions.
It satisfies :
- interpolation on data point
- The derivative inside the interval does not change sign (hermit specific), but this constraints are enforced internally
If user imposes the derivarive at the break points then it might not be able to satifsfy the second condition.
4 Kommentare
Xinwei Li
am 20 Okt. 2023
Bruno Luong
am 20 Okt. 2023
Bearbeitet: Bruno Luong
am 20 Okt. 2023
Beside my link to Wikipedia, you have 2 references in the MATLAB doc page (the first refence is also cited by wikipedia page)
References
[1] Fritsch, F. N. and R. E. Carlson. "Monotone Piecewise Cubic Interpolation." SIAM Journal on Numerical Analysis. Vol. 17, 1980, pp.238–246.
[2] Kahaner, David, Cleve Moler, Stephen Nash. Numerical Methods and Software. Upper Saddle River, NJ: Prentice Hall, 1988.
Xinwei Li
am 20 Okt. 2023
Bruno Luong
am 20 Okt. 2023
Bearbeitet: Bruno Luong
am 20 Okt. 2023
"... which is by imposing monotonicity. "
Exactly
Kategorien
Mehr zu Interpolation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!