cvt_square_pdf_discrete_test, an Octave code which calls cvt_square_pdf_discrete(), which iteratively computes 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 MIT license
cvt_square_pdf_discrete, an Octave code which iteratively calculates a Centroidal Voronoi Tessellation (CVT) over a square, with a density derived from a discrete PDF.