lloydsAlgorithm(Px,Py, crs, numIterations, showPlot)
lloydsAlgorithm(Px,Py, crs, numIterations, showPlot)

lloydsAlgorithm(Px,​Py, crs, numIterations, showPlot)

Starts with a point set, repeatedly moves each point to centroid of Voronoi cell.

下载
下载

您现在正在关注此提交

引用格式

Aaron T. Becker's Robot Swarm Lab (2026). lloydsAlgorithm(Px,Py, crs, numIterations, showPlot) (https://ww2.mathworks.cn/matlabcentral/fileexchange/41507-lloydsalgorithm-px-py-crs-numiterations-showplot), MATLAB Central File Exchange. 检索时间: .

致谢

参考作品: VoronoiLimit(varargin)

类别

在 Help Center 和 MATLAB Answers 中查找有关 Voronoi Diagrams 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.6.0

corrected error about some vertices not being in clockwise error by sorting the vertices

下载
1.5.0

Corrected error when called as a function by adding a calculation for n, removed warning about order of vertices by sorting them in CW order, added example call as a function. Thanks for the feedback Kirill Smirnov!

下载
1.3.0

When run with no arguments, starts the robots in a small grid pattern.

下载
1.1.0

removed dependency on www.mathworks.com/matlabcentral/fileexchange/34428 (which sometimes miscalculates the Voronoi cell boundaries), robots never leave the boundary, reduces to a single file.

下载
1.0.0

下载