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'])
评论列表
文章目录