FLORIDA_CVT_GEO, Python functions which explore the creation of a centroidal Voronoi Tessellation (CVT) of the state of Florida, based solely on geometric considerations.
The function florida_sample_geo() can return a set of points drawn uniformly at random from the interior of Florida.
Using the Florida border polygon definition, florida_point_display() can display a set of points representing locations in Florida, specified by their longitude and latitude.
Given a set of points in Florida, florida_voronoi_display() can show the resulting Voronoi diagram. Note that, because of shortcomings in MATLAB's voronoi() command, some tricks had to be used to get a satisfactory plot. In particular, because rays to infinity are not returned, an auxilliary frame of points was added around Florida, which fixes that problem, while causing the display of somewhat spurious cell boundary lines well outside of the region of interest.
Given a set of points in Florida, florida_centroid_geo() can estimate the centroids of the "in-Florida" Voronoi cells.
The function florida_cvt_geo() can estimate the location of generator points corresponding to a centroidal Voronoi tessellation of the geometric information in Florida.
The function florida_district_reader() can read a file containing a list of Florida's 27 congressional districts and the location of a representative town in each district.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
FLORIDA_CVT_GEO is available in a MATLAB version and a Python version.
CVT_1D_LLOYD, a Python program which constructs a CVT in one dimension using Lloyd's method.
CVT_2D_SAMPLING, a Python program 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.
FLORIDA_CVT_POP, Python programs which explore the creation of a centroidal Voronoi Tessellation (CVT) of the state of Florida, based on population density.
You can go up one level to the Python source codes.