CVT_2D_SAMPLING is a Python program which allows the user to carry out steps of Lloyd's iteration for approximating a Centroidal Voronoi Tessellation (CVT) in the unit square.
The determination of the Voronoi regions is only carried out approximately, using sampling. This means that the convergence of the iteration is influenced by the accuracy of the estimates provided by sampling.
cvt_2d_sampling ( g_num, it_num, s_1d_num )where
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
CVT_2D_SAMPLING is available in a MATLAB version and a Python version.
CVT_1D_LLOYD, a Python program which computes an N-point Centroidal Voronoi Tessellation (CVT) within the interval [0,1], under a uniform density, using exact techniques to determine the Voronoi regions.
FLORIDA_CVT_GEO, Python functions which explore the creation of a centroidal Voronoi Tessellation (CVT) of the state of Florida, based solely on geometric considerations.
FLORIDA_CVT_POP, Python programs which explore the creation of a centroidal Voronoi Tessellation (CVT) of the state of Florida, based on population density.
You can go up one level to the Python source codes.