**cvt_2d_sampling_test**
a MATLAB code which
calls cvt_2d_sampling(), which
carries out steps of Lloyd's iteration for
approximating a Centroidal Voronoi Tessellation (CVT) in the unit square.

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

cvt_2d_sampling, a MATLAB code which computes an N-point Centroidal Voronoi Tessellation (CVT) within the unit square [0,1]x[0,1], under a uniform density, using sampling to estimate the Voronoi regions.

- cvt_2d_sampling_test.m calls all the tests.
- cvt_2d_sampling_test.sh runs all the tests.
- cvt_2d_sampling_test.txt the output file.

- delaunay.png the Delaunay diagram.
- energy.png the cluster energy as a function of iterate steps.
- motion.png the motion of the generators over the iteration.
- voronoi.png the Voronoi diagram.