utils.py 文件源码

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

项目:errorgeopy 作者: alpha-beta-soup 项目源码 文件源码
def get_alpha_complex(alpha, points, simplexes):
    """Obtain the alpha shape.

    Args:
        alpha (float): the paramter for the alpha shape
        points: data points
        simplexes: the list of indices that define 2-simplexes in the Delaunay
            triangulation
    """
    return filter(lambda simplex: circumcircle(points, simplex)[1] < alpha,
                  simplexes)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号