cvt_square_nonuniform, an Octave code which iteratively calculates a Centroidal Voronoi Tessellation (CVT) in a square with a nonuniform density.
cvt_square_nonuniform() works in the square [-1,+1]x[-1,+1] with density rho(x,y)=sqrt(x^4+y^4). The function starts from a random configuration of generators. It repeatedly uses uniform sampling to estimate the centers of mass of the Voronoi subregions, and then replaces the generators by the centers of mass.
The calling sequence is:
p = cvt_square_nonuniform ( n, sample_num )
The computer code and data files described and made available on this web page are distributed under the MIT license
cvt_square_nonuniform is available in a MATLAB version and an Octave version.
cvt_box, an Octave code which constructs a modified CVT in which some points are forced to lie on the boundary.
ccvt_reflect, an Octave code which tries to construct a modified CVT in which some points are forced to lie on the boundary, using a reflection idea.
cvt_1d_lloyd, an Octave code which computes an n-point centroidal Voronoi tessellation (CVT) within the interval [0,1], under a uniform density.
cvt_1d_nonuniform, an Octave code which allows the user to watch the evolution of a CVT computed over a 1d interval with a nonuniform density.
cvt_1d_sampling, an Octave code which computes an n-point centroidal Voronoi tessellation (CVT) within the interval [0,1], under a uniform density, using sampling to estimate the voronoi regions.
cvt_2d_sampling, an Octave code which computes an n-point centroidal Voronoi tessellation (CVT) within the unit square [0,1]x[0,1], under a uniform density, using sampling to estimate the voronoi regions.
cvt_circle_nonuniform, an Octave code which calculates a nonuniform centroidal Voronoi tessellation (CVT) over a circle.
cvt_circle_uniform, an Octave code which calculates a centroidal Voronoi tessellation (CVT) over a circle with uniform density.
cvt_square_uniform, an Octave code which iteratively calculates a centroidal voronoi tessellation (CVT) over a square, with a uniform density.
cvtm_1d, an Octave code which estimates a mirror-periodic centroidal Voronoi tessellation (CVTM) in the periodic interval [0,1], using a version of Lloyd's iteration.
cvtp_1d, an Octave code which estimates a periodic centroidal Voronoi tessellation (CVTP) in the periodic interval [0,1], using a version of Lloyd's iteration.
discrete_pdf_sample_2d, an Octave code which demonstrates how to construct a probability density function (PDF) from a table of sample data, and then to use that PDF to create new samples.
florida_cvt_geo, an Octave code which explores the creation of a centroidal Voronoi tessellation (CVT) of the state of Florida, based solely on geometric considerations.
test_triangulation, an Octave code which defines the geometry of a number of sample regions.
voronoi_plot, an Octave code which plots the Voronoi neighborhoods of points using l1, l2, linfinity or arbitrary LP norms;