Python pchip插值缺失属性

2024-06-26 18:00:21 发布

您现在位置:Python中文网/ 问答频道 /正文

我试着用夏比的求一条曲线的根pchip插值根()并且我得到一个属性错误。代码在我的另一台计算机上运行,所以我不完全确定是什么问题。。。错误如下:

return (PPoly.from_bernstein_basis(self._bpoly)).roots() 
AttributeError: 'PchipInterpolator' object has no attribute '_bpoly'

下面是导致问题的源代码的链接link。有什么想法吗?在


Tags: 代码fromselfreturn属性计算机错误basis