CVT_1D_NONUNIFORM is a MATLAB program which allows the user to watch the evolution of an approximate CVT for a nonuniform density function.
The number of generator points defaults to 10, and is stored in an internal variable N.
The points are initialized randomly, or may be set uniformly, or even all set to zero. This is controlled by an internal parameter SAMPLE_FUNCTION_INIT.
The density function d(s) is specified by the value of DENSITY_FUNCTION:
The variable SAMPLE_NUM_CVT controls the number of sample points generated on each CVT iteration. It should be 20 to 100 times greater than the value of N.
The variable SAMPLE_NUM_STEPS controls the number of CVT iterations taken. A value of 100 is probably enough.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
CCVT_BOX is a MATLAB program which constructs a modified CVT in which some points are forced to lie on the boundary.
CCVT_REFLECT is a MATLAB program which tries to construct a modified CVT in which some points are forced to lie on the boundary, using a reflection idea.
CVT is a MATLAB library which computes CVT's.
CVT is a dataset directory which contains a variety of examples of CVT datasets.
CVT_DATASET is a MATLAB program which can create a CVT dataset.
CVT_DEMO is a MATLAB program which demonstrates a CVT calculation.
LCVT is a MATLAB library which computes a "Latinized" Centroidal Voronoi Tessellation.
TEST_TRIANGULATION is a MATLAB library which defines the geometry of a number of sample regions.
You can go up one level to the MATLAB source codes.