cvt_square_pdf_discrete


cvt_square_pdf_discrete, an Octave code which iteratively computes a Centroidal Voronoi Tessellation (CVT) in a square, using a density determined by a discrete PDF.

As you watch the CVT develop, for instance, you will be able to guess something about the angle of intersection between the boundaries of the region, and the edges of Voronoi regions.

CVT_SQUARE_PDF_DISCRETE is a function which uses a density function defined by discrete data. In this case, the density is defined by a 20 x 20 grid of sample density values. The calling sequence is:

[ p, t ] = cvt_square_pdf_discrete ( n, sample_num, delaunay_display )

Licensing:

The computer code and data files described and made available on this web page are distributed under the MIT license

Languages:

cvt_square_pdf_discrete is available in a MATLAB version and an Octave version.

Related Data and Programs:

cvt_square_pdf_discrete_test

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_nonuniform, an Octave code which iteratively calculates a centroidal Voronoi tessellation (cvt) over a square, with a nonuniform 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;

Reference:

  1. Franz Aurenhammer,
    Voronoi diagrams - a study of a fundamental geometric data structure,
    ACM Computing Surveys,
    Volume 23, Number 3, pages 345-405, September 1991.
  2. John Burkardt, Max Gunzburger, Janet Peterson, Rebecca Brannon,
    User Manual and Supporting Information for Library of Codes for Centroidal Voronoi Placement and Associated Zeroth, First, and Second Moment Determination,
    Sandia National Laboratories Technical Report SAND2002-0099,
    February 2002.
  3. Qiang Du, Vance Faber, Max Gunzburger,
    Centroidal Voronoi Tessellations: Applications and Algorithms,
    SIAM Review,
    Volume 41, Number 4, December 1999, pages 637-676.

Source Code:


Last revised on 20 July 2023.