Content deleted Content added
m →External links: clean up / fix section header naming (WP:ASL) using AWB (12082) |
m →top: fmt., punct., style |
||
Line 3:
| direction = vertical
| header = Example of Lloyd's algorithm. The Voronoi diagram of the current points at each iteration is shown. The plus signs denote the centroids of the Voronoi cells.
| header_align =
| header_background =
| footer = In the last image, the points are very near the centroids of the Voronoi cells. A centroidal Voronoi tessellation has been found.
| footer_align =
| footer_background =
| width = 200
Line 12:
| image1 = LloydsMethod1.svg
| alt1 = Lloyd's method, iteration 1
| caption1 =
| image2 = LloydsMethod2.svg
| alt2 = Lloyd's method, iteration 2
| caption2 =
| image3 = LloydsMethod3.svg
| alt3 = Lloyd's method, iteration 3
| caption3 =
| image4 = LloydsMethod15.svg
| alt4 = Lloyd's method, iteration 15
| caption4 =
}}
In [[computer science]] and [[electrical engineering]], '''Lloyd's algorithm''', also known as '''Voronoi iteration''' or relaxation, is an algorithm named after Stuart P. Lloyd for finding evenly spaced sets of points in subsets of [[Euclidean space]]s
Although the algorithm may be applied most directly to the [[Euclidean plane]], similar algorithms may also be applied to higher-dimensional spaces or to spaces with other [[Non-Euclidean geometry|non-Euclidean]] metrics. Lloyd's algorithm can be used to construct close approximations to [[centroidal Voronoi tessellation]]s of the input,<ref name="dfg99"/> which can be used for [[Quantization (signal processing)|quantization]], [[dithering]], and [[stippling]]. Other applications of Lloyd's algorithm include smoothing of [[triangle mesh]]es in the [[finite element method]].
|