我应该如何从 scipy RBFInterpolator 获得导数? (简单来说,就像 bisplev 一样)

问题描述 投票:0回答:1

关于 scipy.interpolate.RBFInterpolator 的问题

我发现 RBF 通过 scipy.interpolate.bisplref 使用我的特定数据提供比 B 样条更平滑的 2D 插值结果,但我需要对我得到的结果进行导数。当我使用 scipy.interpolate.bisplev 评估 B 样条线时,我可以指定 dx 和 dy 以获得每个维度中的任意阶导数。 RBFInterpolator 是否有类似的东西我在文档中没有看到?或者我应该只采用评估样条线的梯度/ numpy.gradient ?

python scipy interpolation spline
1个回答
0
投票

不知道 RBFInterpolator,但要获取导数,您可以使用 scipy.misc.derivative(链接页面的后半部分 - 只需向下滚动即可查看示例)

© www.soinside.com 2019 - 2024. All rights reserved.