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 information on this web page is 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.