cvt_square_pdf_discrete_test, a MATLAB program which calls cvt_square_pdf_discrete() to iteratively compute a Centroidal Voronoi Tessellation (CVT) in a square, using a density determined by a discrete PDF.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
cvt_square_pdf_discrete, a MATLAB program which iteratively calculates a Centroidal Voronoi Tessellation (CVT) over a square, with a density derived from a discrete PDF.