04-spline_fitter.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:interactive_mpl_tutorial 作者: tacaswell 项目源码 文件源码
def circ(self):
        '''returns a rough estimate of the circumference'''
        if self._circ is None:
            new_pts = si.splev(np.linspace(0, 1, 1000), self.tck, ext=2)
            self._circ = np.sum(np.sqrt(np.sum(np.diff(new_pts, axis=1) ** 2,
                                               axis=0)))
        return self._circ
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号