【发布时间】:2021-10-04 19:13:48
【问题描述】:
我正在尝试生成 Voronoi 分割多边形,但无法理解 Voronoi 的 Scipy 实现中的参数“furthest_site=True”。
从 scipy.spatial 导入 Voronoi, voronoi_plot_2d
points = np.array([[0, 0], [0, 1], [0, 2], [1, 0], [1, 1], [1, 2], [2, 0], [2, 1], [2, 2]])
vor = Voronoi(points,furthest_site=True)
将 matplotlib.pyplot 导入为 plt
fig = voronoi_plot_2d(vor) plt.show()
属性“furthest_site=True”的解释是什么
【问题讨论】:
标签: scikit-learn voronoi scipy-spatial