Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有位置经度和纬度的传感器数据。我有以下数据点:
我想将彼此一定距离内的点聚合到路线上的一个点,如下所示:
每个新点都将位于圆的中心,并将包括给定区域的所有传感器读数的平均值。我尝试从经度和纬度中删除精度,但我得到的结果很糟糕,并且路线失去了形状。
我实际上使用 kmeans 聚类解决了这个问题。您将所有点的坐标和所需输出点的数量作为参数传递,它为您提供了用于聚合点的集群。