utils.py 文件源码

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

项目:errorgeopy 作者: alpha-beta-soup 项目源码 文件源码
def cluster_named_tuple():
    """Defines a NamedTuple representing a single cluster.

    Returns:
        Named tuple with the following properties:
            label (int): the id of the cluster
            centroid: Point representing the cluster centre
            geom (MultiPoint or Point): the cluster members
            location (errorgeopy.Location): one cluster from the input set
    """
    return namedtuple('Cluster', ['label', 'centroid', 'location'])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号