Borrar filtros
Borrar filtros

why does not "pchip" requires derivative values as input

2 visualizaciones (últimos 30 días)
Xinwei Li
Xinwei Li el 20 de Oct. de 2023
Editada: Bruno Luong el 20 de Oct. de 2023
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"

Respuestas (1)

Bruno Luong
Bruno Luong el 20 de Oct. de 2023
Editada: Bruno Luong el 20 de Oct. de 2023
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 comentarios
Xinwei Li
Xinwei Li el 20 de Oct. de 2023
Hi Bruno,
Many thanks for your help. Now I get the idea of internally calculated derivatives, which is by imposing monotonicity.
Bruno Luong
Bruno Luong el 20 de Oct. de 2023
Editada: Bruno Luong el 20 de Oct. de 2023
"... which is by imposing monotonicity. "
Exactly

Iniciar sesión para comentar.

Categorías

Más información sobre Polynomials en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by