Re: Getting scipy.interpolate.pchip_interpolate to return the first derivative of a pchip interpolation
Robert Kern <[email protected]> Mon, 23 Jan 2023 18:24:48 -0500
| Newsgroups | gmane.comp.python.scientific.user |
|---|---|
| Message-ID | <CAF6FJiuwj2SUdffZYoWzpg38x3fwDp=-u6NwdsqAc-MSW=GctQ@mail.gmail.com> |
--===============8391762698346839274== Content-Type: multipart/alternative; boundary="00000000000018433a05f2f6b503" --00000000000018433a05f2f6b503 Content-Type: text/plain; charset="UTF-8" On Mon, Jan 23, 2023, 6:12 PM Samuel Dupree <[email protected]> wrote: > Thank you for all the responses, however my question still remains: how > does pchip_interpolate know the identity of the function that generated > the data and the first derivative to be interpolated? It can't because > all pchip_interpolate gets is a list of numbers. The identity of the > functions are not passed to it unless there is a way pchip_interpolate > knows. > It does not compute a spline fit to the derivative of the function that generates the data. It computes a spline fit to the data, then takes the derivative of the fitted spline function. --00000000000018433a05f2f6b503 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D= "gmail_attr">On Mon, Jan 23, 2023, 6:12 PM Samuel Dupree <<a href=3D"mai= lto:[email protected]">[email protected]</a>> wrote:<br></div><b= lockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px = #ccc solid;padding-left:1ex">Thank you for all the responses, however my qu= estion still remains: how <br> does pchip_interpolate know the identity of the function that generated <br= > the data and the first derivative to be interpolated? It can't because = <br> all pchip_interpolate gets is a list of numbers. The identity of the <br> functions are not passed to it unless there is a way pchip_interpolate <br> knows.<br></blockquote></div></div><div dir=3D"auto"><br></div><div dir=3D"= auto">It does not compute a spline fit to the derivative of the function th= at generates the data. It computes a spline fit to the data, then takes the= derivative of the fitted spline function.=C2=A0</div></div> --00000000000018433a05f2f6b503-- --===============8391762698346839274== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ SciPy-User mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/scipy-user.python.org/ Member address: [email protected] --===============8391762698346839274==--