07-Jan-2022 20:09:24 florida_cvt_pop_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test florida_cvt_pop(). FLORIDA_CDF_POP_TEST(): FLORIDA_CDF_POP constructs a cumulative distribution function (CDF) from a vector of population data. Note that CDF is indexed 1 through N+1. FLORIDA_CENSUS_READER: Read a file which contains the latitude, longitude, population and geoid for census blocks. About to read the file "florida_census.csv": Read 4245 records. # GEOID POP CDF 0 0 1 12001000200 7431 0.000395238 2 12001000301 3308 0.000571184 3 12001000302 2770 0.000718514 4 12001000400 5665 0.00101982 5 12001000500 4976 0.00128448 6 12001000600 4350 0.00151585 7 12001000700 6075 0.00183897 8 12001000806 2180 0.00195492 9 12001000808 3630 0.00214799 10 12001000809 1364 0.00222054 ........ ........... ........ .............. 4236 12131950602 2506 0.998284 4237 12131950603 7367 0.998676 4238 12131990000 0 0.998676 4239 12133970102 1651 0.998764 4240 12133970103 3335 0.998941 4241 12133970104 3228 0.999113 4242 12133970200 3624 0.999305 4243 12133970301 2282 0.999427 4244 12133970302 6615 0.999779 4245 12133970303 4161 1 FLORIDA_CENSUS_READER_TEST(): FLORIDA_CENSUS_READER reads a file "florida_census.csv" and returns the longitude, latitude, populiation and census district ID form several thousand sites. FLORIDA_CENSUS_READER: Read a file which contains the latitude, longitude, population and geoid for census blocks. About to read the file "florida_census.csv": Read 4245 records. # GEOID POP Longitude Latitude 1 12001000200 7431 -82.333391 29.651117 2 12001000301 3308 -82.331419 29.668004 3 12001000302 2770 -82.330062 29.684237 4 12001000400 5665 -82.308121 29.679476 5 12001000500 4976 -82.316927 29.656845 6 12001000600 4350 -82.288504 29.655763 7 12001000700 6075 -82.290246 29.631659 8 12001000806 2180 -82.332245 29.639041 9 12001000808 3630 -82.333526 29.627420 10 12001000809 1364 -82.349284 29.630454 ........ ........... ........ .............. .............. 4236 12131950602 2506 -86.054977 30.309727 4237 12131950603 7367 -86.362061 30.386928 4238 12131990000 0 -86.194714 30.302065 4239 12133970102 1651 -85.568268 30.715056 4240 12133970103 3335 -85.591120 30.787334 4241 12133970104 3228 -85.488947 30.774138 4242 12133970200 3624 -85.785479 30.672095 4243 12133970301 2282 -85.574883 30.501896 4244 12133970302 6615 -85.762566 30.528566 4245 12133970303 4161 -85.526636 30.641711 Min 0 -87.497813 24.545290 Avg 4429 Max 33041 -80.018828 30.966749 Sum 18801310 Created a cut-down geoid/pop/lon/lat file: "florida_census.txt" FLORIDA_CENTROID_POP_TEST(): FLORIDA_CENTROID_POP can estimate the centroids of the Voronoi cells associated with a set of points within the boundaries of Florida, expressed as longitudes and latitudes. FLORIDA_CENSUS_READER: Read a file which contains the latitude, longitude, population and geoid for census blocks. About to read the file "florida_census.csv": Read 4245 records. FLORIDA_CENTROID_POP: MATLAB version Estimate population centroids of Voronoi regions, given generators. FLORIDA_VORONOI_DISPLAY: MATLAB version Display Voronoi diagram of Florida, with generator points and Voronoi diagram. Plot saved as "florida_centroid_pop.png" florida_cvt_pop_test01(): FLORIDA_CVT_POP can estimate the population centroidal Voronoi tessellation (CVT) of a set of points within the boundaries of Florida, expressed as longitudes and latitudes. FLORIDA_CENSUS_READER: Read a file which contains the latitude, longitude, population and geoid for census blocks. About to read the file "florida_census.csv": Read 4245 records. FLORIDA_CVT_POP: MATLAB version Estimate a centroidal Voronoi tessellation (CVT) of Florida, using population data. FLORIDA_POINT_DISPLAY: MATLAB version Display points within the borders of Florida. FLORIDA_CENTROID_POP: MATLAB version Estimate population centroids of Voronoi regions, given generators. FLORIDA_VORONOI_DISPLAY: MATLAB version Display Voronoi diagram of Florida, with generator points and Voronoi diagram. FLORIDA_POINT_DISPLAY: MATLAB version Display points within the borders of Florida. FLORIDA_CENTROID_POP: MATLAB version Estimate population centroids of Voronoi regions, given generators. FLORIDA_VORONOI_DISPLAY: MATLAB version Display Voronoi diagram of Florida, with generator points and Voronoi diagram. FLORIDA_POINT_DISPLAY: MATLAB version Display points within the borders of Florida. FLORIDA_CENTROID_POP: MATLAB version Estimate population centroids of Voronoi regions, given generators. FLORIDA_VORONOI_DISPLAY: MATLAB version Display Voronoi diagram of Florida, with generator points and Voronoi diagram. FLORIDA_POINT_DISPLAY: MATLAB version Display points within the borders of Florida. FLORIDA_CENTROID_POP: MATLAB version Estimate population centroids of Voronoi regions, given generators. FLORIDA_VORONOI_DISPLAY: MATLAB version Display Voronoi diagram of Florida, with generator points and Voronoi diagram. FLORIDA_POINT_DISPLAY: MATLAB version Display points within the borders of Florida. FLORIDA_CENTROID_POP: MATLAB version Estimate population centroids of Voronoi regions, given generators. FLORIDA_VORONOI_DISPLAY: MATLAB version Display Voronoi diagram of Florida, with generator points and Voronoi diagram. FLORIDA_POINT_DISPLAY: MATLAB version Display points within the borders of Florida. FLORIDA_CENTROID_POP: MATLAB version Estimate population centroids of Voronoi regions, given generators. FLORIDA_VORONOI_DISPLAY: MATLAB version Display Voronoi diagram of Florida, with generator points and Voronoi diagram. FLORIDA_POINT_DISPLAY: MATLAB version Display points within the borders of Florida. FLORIDA_CENTROID_POP: MATLAB version Estimate population centroids of Voronoi regions, given generators. FLORIDA_VORONOI_DISPLAY: MATLAB version Display Voronoi diagram of Florida, with generator points and Voronoi diagram. FLORIDA_POINT_DISPLAY: MATLAB version Display points within the borders of Florida. FLORIDA_CENTROID_POP: MATLAB version Estimate population centroids of Voronoi regions, given generators. FLORIDA_VORONOI_DISPLAY: MATLAB version Display Voronoi diagram of Florida, with generator points and Voronoi diagram. FLORIDA_POINT_DISPLAY: MATLAB version Display points within the borders of Florida. FLORIDA_CENTROID_POP: MATLAB version Estimate population centroids of Voronoi regions, given generators. FLORIDA_VORONOI_DISPLAY: MATLAB version Display Voronoi diagram of Florida, with generator points and Voronoi diagram. FLORIDA_POINT_DISPLAY: MATLAB version Display points within the borders of Florida. FLORIDA_CENTROID_POP: MATLAB version Estimate population centroids of Voronoi regions, given generators. FLORIDA_VORONOI_DISPLAY: MATLAB version Display Voronoi diagram of Florida, with generator points and Voronoi diagram. FLORIDA_POINT_DISPLAY: MATLAB version Display points within the borders of Florida. FLORIDA_CENTROID_POP: MATLAB version Estimate population centroids of Voronoi regions, given generators. FLORIDA_VORONOI_DISPLAY: MATLAB version Display Voronoi diagram of Florida, with generator points and Voronoi diagram. Plot saved as "florida_cvt_pop.png" florida_pdf_pop_test(): florida_pdf_pop() constructs a probability distribution function (PDF) from a vector of population data. FLORIDA_CENSUS_READER: Read a file which contains the latitude, longitude, population and geoid for census blocks. About to read the file "florida_census.csv": Read 4245 records. # GEOID POP PDF 1 12001000200 7431 0.000395238 2 12001000301 3308 0.000175945 3 12001000302 2770 0.00014733 4 12001000400 5665 0.000301309 5 12001000500 4976 0.000264662 6 12001000600 4350 0.000231367 7 12001000700 6075 0.000323116 8 12001000806 2180 0.000115949 9 12001000808 3630 0.000193072 10 12001000809 1364 7.25481e-05 ........ ........... ........ .............. 4236 12131950602 2506 0.000133289 4237 12131950603 7367 0.000391834 4238 12131990000 0 0 4239 12133970102 1651 8.7813e-05 4240 12133970103 3335 0.000177381 4241 12133970104 3228 0.00017169 4242 12133970200 3624 0.000192753 4243 12133970301 2282 0.000121375 4244 12133970302 6615 0.000351837 4245 12133970303 4161 0.000221314 florida_point_display_test(): FLORIDA_POINT_DISPLAY can display a set of points within the boundaries of Florida, expressed as longitudes and latitudes. FLORIDA_POINT_DISPLAY: MATLAB version Display points within the borders of Florida. Plot saved as "florida_point_display.png" florida_sample_pop_test(): florida_sample_pop() randomly samples census districts weighted by population. FLORIDA_CENSUS_READER: Read a file which contains the latitude, longitude, population and geoid for census blocks. About to read the file "florida_census.csv": Read 4245 records. # INDX GEOID POP PDF 1 2583 12089050303 12311 0.000655 2 4006 12117020808 3874 0.000206 3 1735 12071050307 3995 0.000212 4 115 12009060600 5103 0.000271 5 2139 12086002003 3336 0.000177 6 99 12005002701 4073 0.000217 7 1030 12035060103 2408 0.000128 8 663 12019030304 4350 0.000231 9 3522 12103026500 7038 0.000374 10 1816 12073002417 7207 0.000383 ........ ........ ........... ........ .............. 41 150 12009064301 5292 0.000281 42 2108 12086001004 5354 0.000285 43 3647 12105011901 4262 0.000227 44 351 12011041500 3241 0.000172 45 1504 12061050603 5322 0.000283 46 1809 12073002410 6018 0.000320 47 32 12001001803 6358 0.000338 48 2676 12095013402 2904 0.000154 49 1385 12057012501 3951 0.000210 50 1134 12053041401 5779 0.000307 FLORIDA_POINT_DISPLAY: MATLAB version Display points within the borders of Florida. Plot saved as "florida_sample_pop.png" florida_voronoi_display_test(): florida_voronoi_display() displays points within the boundaries of Florida, expressed as longitudes and latitudes, and the Voronoi diagram they generate. FLORIDA_VORONOI_DISPLAY: MATLAB version Display Voronoi diagram of Florida, with generator points and Voronoi diagram. Plot saved as "florida_voronoi_display.png" florida_cvt_pop_test(): Normal end of execution. 07-Jan-2022 20:09:38