cvt_1d_nonuniform_test, an Octave code which calls cvt_1d_nonuniform(), which approximates a CVT for a nonuniform density function.
The computer code and data files described and made available on this web page are distributed under the MIT license
cvt_1d_nonuniform, an Octave code which computes an N-point Centroidal Voronoi Tessellation (CVT) in 1 dimension, under a nonuniform density, and plots the evolution of the locations of the generators during the iteration;