florida_cvt_pop_tests 05-Jul-2016 09:26:23 FLORIDA_CVT_POP_TESTS MATLAB version Test the FLORIDA_CVT_POP library. 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_test.png" FLORIDA_CENSUS_READER_TEST: FLORIDA_CENSUS_READER reads a file "florida_census.csv" and returns the longitude, latitude, and name of a city in each Florida congressional district. 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 FLORIDA_POP_PDF_TEST: FLORIDA_POP_PDF 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_POP_CDF_TEST: FLORIDA_POP_CDF 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_POP_SAMPLE_TEST: FLORIDA_POP_SAMPLE 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 869 12031013902 4943 0.000263 2 4065 12117022104 6695 0.000356 3 3521 12103026400 6691 0.000356 4 2384 12086009803 4896 0.000260 5 1765 12073000302 2334 0.000124 6 268 12011020302 6982 0.000371 7 1022 12033003612 4690 0.000249 8 456 12011070204 5024 0.000267 9 180 12009066400 4994 0.000266 10 2669 12095012600 4968 0.000264 ........ ........ ........... ........ .............. 41 2426 12086010704 9319 0.000496 42 1543 12069030106 1634 0.000087 43 2592 12091020302 5876 0.000313 44 1518 12061050902 5223 0.000278 45 849 12031012800 6925 0.000368 46 2945 12099001908 6291 0.000335 47 479 12011070401 6129 0.000326 48 1229 12057005700 3670 0.000195 49 3497 12103025408 6253 0.000333 50 3496 12103025407 5156 0.000274 FLORIDA_POINT_DISPLAY: MATLAB version Display points within the borders of Florida. Plot saved as "florida_pop_sample_test.png" FLORIDA_VORONOI_DISPLAY_TEST: FLORIDA_VORONOI_DISPLAY can display a set of 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_test.png" FLORIDA_CENTROID_GEO_TEST: FLORIDA_CENTROID_GEO 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_test.png" FLORIDA_CVT_POP_TEST: 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_test.png" FLORIDA_CVT_POP_TESTS Normal end of execution. 05-Jul-2016 09:26:48 diary off