matplotlib-client.py 文件源码

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

项目:Auspex 作者: BBN-Q 项目源码 文件源码
def scaled_Delaunay(self, points):
        """ Return a scaled Delaunay mesh and scale factors """
        scale_factors = []
        points = np.array(points)
        for i in range(points.shape[1]):
            scale_factors.append(1.0/np.mean(points[:,i]))
            points[:,i] = points[:,i]*scale_factors[-1]
        mesh = Delaunay(points)
        for i in range(points.shape[1]):
            mesh.points[:,i] = mesh.points[:,i]/scale_factors[i]
        return mesh
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号