Algorithm-RandomPointGenerator

 view release on metacpan or  search on metacpan

examples/bb2.csv  view on Meta::CPAN

# This bounding is supposed to go with hist3.csv histogram

# The first row of this file shows the start and the end of the horizontal
# extent of the bounding box.  The second row does the same for the vertical
# extent.

# In each line, the first value must be smaller than the second

 -71.772016,  -70.431923
 -34.254251,   -33.203240

examples/hist2.csv  view on Meta::CPAN

0,211407,216387,211410,205621,199122,192870,187456,183782,180400,175601,169950,164306,159649,121399,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,165671,427716,427716,427716,427716,427716,427637,387602,291349,180061,75538,2845,0,0,0,0,0,245015,...
0,408221,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,335502,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,256715,750800,666418,584009,511115,432659,427716,427716,427716,427716,427716,402837,324682,248412,...
0,407081,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,559894,697441,602081,263000,259908,256804,253670,250457,246976,243367,239961,236552,232570,229213,225792,109344,0,0,0,0,0,0,0,0,0,0,0,0,0,214157,855432,855432,855432,85543...
0,406408,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,636898,855432,763938,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,204339,122713,115934,33243,0,0,0,0,0,0,5624,33966,64399,94448,2236...
0,405171,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,638239,855432,764526,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,196386,289941,427716,426974,369569,276658,190228,108430,326076,400...
0,403962,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,639250,855432,764552,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,193981,282899,427716,427716,427716,427716,427716,427716,800996,813...
0,402723,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,640266,855432,765180,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,196840,271649,427716,427716,427716,427716,427716,427716,821298,855...
0,401634,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,640266,855432,765180,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,206708,256782,427716,427716,427716,427716,427716,427716,1114118,11...
0,544427,576055,570123,564270,559010,553315,547401,541537,536163,530361,525079,732959,943636,831222,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,210435,249828,427716,427716,427716,427716,427716,479973,1282667,12...
0,799448,855432,855432,855432,855432,855432,855432,855432,855432,855432,855432,1067496,1283148,1102162,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,208963,259258,469856,506222,549110,522817,427716,562450,1108867...
0,647488,700209,706242,712106,718137,724107,729575,735132,740563,745769,750521,964995,1187114,1026830,427716,427716,427716,427716,427716,448481,495183,542177,595235,656634,714503,764396,592112,676276,855432,855432,855432,661234,427716,533999,855432,8...
0,397757,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,634556,855432,761234,485536,690038,740439,788993,832971,855420,855432,855432,855432,855432,855432,855432,628500,774882,941962,867667,855432,656016,427716,480382,855432,855...
0,396869,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,538706,664005,572491,352341,676217,679906,683493,687409,692065,696253,700277,704153,708264,712850,717686,561297,952006,1283148,1274548,1207036,942799,627364,540226,856703,...
0,396311,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,331646,108324,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,931860,1271950,1283148,1283148,1091915,855432,855432,123674...
0,395670,427716,427716,427716,427716,427716,486528,564309,571672,578873,585023,590088,595922,507509,294531,617248,624161,630992,637569,643617,650893,532790,427716,427716,427716,427716,427716,717618,866138,935691,1021174,908680,764797,842052,1254457,1...
0,395670,427716,427716,427716,427716,427716,622471,855432,855432,855432,855432,855432,855432,760699,543239,855432,855432,855432,855432,855432,855432,636424,427716,427716,429116,472303,526384,870627,1069611,1111870,1156956,815032,427716,449715,936408,...
0,395670,427716,427716,427716,427716,427716,625238,855432,855432,855432,855432,855432,855432,761407,544128,864748,909240,955119,999363,1039860,1072180,880722,691975,761589,833115,855432,855432,1137343,1283148,1283148,1283148,841221,427716,467260,8554...
0,395391,427716,427716,427716,427716,427716,629695,855432,855432,855432,855432,855432,858693,800789,735535,1403394,1451233,1422843,1283148,1283148,1283148,1073556,855432,855432,855432,855432,855432,1114093,1220812,1178103,1137984,749557,427716,432112...
0,297821,327689,331754,355205,407033,462101,708879,977636,1022271,1071953,1123295,1183352,1240747,1170672,1092274,1710864,1710864,1570952,1283053,1264638,1225333,972515,706816,646490,591717,535676,475537,694849,855432,855432,855432,630346,427716,4277...
0,0,133286,403019,427500,427716,427716,640412,866751,874513,882232,889959,897964,905524,912161,1097455,1516936,1466978,1282615,959318,952789,960195,692377,427716,427716,427716,427716,427716,775944,927089,860629,855432,629864,427716,427716,427716,4277...
0,0,152677,427716,427716,427716,427716,830760,1283148,1283148,1283148,1283148,1283148,1283148,1283148,1407005,1710864,1710864,1574666,1283148,1283148,1283148,837543,427716,427716,427716,427716,427716,959558,1283148,1265167,1185105,869814,587893,50325...
0,0,157137,427716,427716,427716,427716,786529,1223272,1215562,1207909,1200127,1192359,1185072,1177915,1296383,1591810,1585362,1445688,1144372,1137410,1130564,753067,427716,427716,427716,427716,427716,938571,1281545,1283148,1283148,1043159,855432,8554...
0,0,160799,427716,427716,427716,427716,616389,855432,855432,855432,855432,855432,855432,855432,981463,1283148,1283148,1152068,855432,855432,855432,627048,427716,427716,427716,427716,427716,693390,878251,949434,1025965,841519,765619,845309,855432,8554...
0,0,158686,427716,427716,427716,427716,616722,855432,855432,855432,855432,855432,855671,884649,1060612,1404947,1436490,1339141,1088121,1137835,1181293,992423,638454,427716,427716,427716,434543,741937,950362,984679,1012550,644334,427716,440387,522816,...
0,0,157906,427716,427716,427716,457046,726079,1013694,1058743,1107932,1160881,1214156,1263727,1283148,1406222,1710864,1710864,1583480,1321727,1368178,1421202,1244738,894484,712423,761654,809957,850429,1120868,1283148,1283148,1283148,750339,427716,427...
0,0,159358,427716,427716,427716,589980,1043169,1283148,1283148,1283148,1283148,1283148,1305141,1345883,1577706,2150377,2246300,2146638,1710864,1710864,1710864,1489503,1090238,855432,855432,855432,855432,1121924,1283148,1282249,1258167,729809,427716,4...
0,0,159576,427716,439441,485404,696334,1196621,1483661,1531399,1580629,1633012,1685373,1710862,1710864,1942837,2566296,2566296,2320784,1710864,1710864,1710774,1464897,1015641,732719,685967,634123,584510,801245,911972,867157,855432,581925,427716,42771...
0,0,292721,816484,853175,855432,1017856,1468934,1710864,1710864,1710864,1710864,1710864,1710864,1710864,1897228,2365696,2272925,1982694,1413657,1392541,1393775,1193373,756140,427716,427716,427716,427716,760363,895434,855529,855432,574132,427716,42771...
0,0,321430,855432,855432,855432,1007889,1560604,1959238,1920225,1883732,1872832,1874997,1891001,1905298,2025655,2379249,2440380,2376747,2112714,2138477,2138580,1717297,925193,427716,427716,427716,427716,963086,1283148,1249059,1172788,808112,600103,50...
0,0,225860,567327,519044,470356,680534,1488021,2027514,2078002,2123195,2138580,2136398,2128406,2120532,2226451,2533239,2525533,2403031,2082684,2075575,2068289,1675553,906710,427716,428071,429802,432117,968220,1291928,1293970,1295587,999002,870859,872...
0,0,161318,427716,427716,427716,754015,1484262,1740182,1732503,1725315,1717517,1711207,1692800,1646402,1711921,1973045,1922939,1790576,1819250,1783599,1743432,1499505,1105075,852894,854930,855432,855432,1133410,1361485,1446616,1525666,1303066,1233126...
0,0,162406,427716,427716,427716,715428,1331313,1522267,1473999,1423447,1370047,1315821,1283565,1283148,1399222,1710864,1710864,1634995,1710864,1710864,1710864,1504808,1113366,855432,855432,855432,855432,1129865,1283148,1283148,1283148,995337,855432,9...
0,0,163349,427716,427716,427716,592032,1043673,1283148,1283148,1283148,1283148,1283148,1283148,1283148,1399560,1710864,1710864,1644117,1765543,1767688,1770333,1568601,1180250,920913,922651,924470,926666,1203316,1358292,1360089,1361618,1076986,937393,...
0,0,164384,427716,427716,427716,591870,1041711,1283148,1283148,1283148,1283148,1283148,1283833,1316210,1482879,1846346,1895186,1825332,2138580,2138580,2138580,1933061,1546686,1282010,1249791,1203251,1151675,1369121,1478594,1429830,1382299,1305705,128...
0,0,164808,427716,427716,444437,656549,1155541,1449486,1502083,1553927,1602292,1648490,1694557,1710864,1823893,2125552,2071926,1818844,1937023,1885146,1830287,1575451,1146513,833286,816083,814413,812667,1070519,1237136,1235940,1234311,1233050,1231598...
0,0,287417,776288,823851,854786,1019586,1467357,1710864,1710864,1710864,1710864,1710864,1710864,1710864,1716330,1703853,1663996,1428638,1279952,1283148,1283148,1083719,697974,427716,427716,427716,427716,703991,855432,855432,855432,855432,855432,85543...
0,0,330924,855432,855432,855432,1020414,1455948,1650985,1598070,1546065,1496689,1449816,1404059,1357047,1312563,1284453,1283148,1195028,1283148,1283148,1283148,1088985,702006,427716,427716,427716,427716,952570,1239333,1154544,1072479,991116,909986,85...
62820,261678,495650,734722,614278,520881,636655,1041834,1283148,1283148,1283148,1283148,1283148,1283148,1283148,1283148,1283148,1283148,1219837,1283148,1283148,1283148,1096029,705881,427716,427716,427716,427716,975928,1283148,1283148,1283148,1283148,...
73780,427716,426172,504150,580564,576539,593746,911450,979898,970884,961919,953526,944903,936513,928452,921639,912980,871619,748604,731185,669227,615287,565899,497592,427716,427716,427716,427716,759814,1009177,1102721,1190123,1269718,1283148,1283148,...
106485,635536,682775,729786,776658,805657,650853,855215,845581,795586,738719,682106,629443,578755,533373,506250,454083,427716,371924,427716,427716,427716,427716,427716,427716,427716,427716,427716,711010,855432,855432,855432,864375,938843,1026983,1115...
151834,855432,855432,855432,855432,855432,776868,480203,431450,427716,427716,427716,427716,427716,427716,427716,427716,427716,374986,427716,427716,427716,427716,427716,427716,427716,427716,427716,708400,855432,855432,855432,855432,855432,855432,85543...
142100,762256,714693,667270,619900,572639,525484,445163,424595,427716,427716,427716,427716,427716,427716,453741,512660,563968,542277,809282,810471,812003,813025,813880,814631,815455,817011,818404,1103040,1247728,1248469,1249081,1249666,1250682,125141...
77786,427716,427716,427716,427716,427716,427716,427707,425650,570078,637688,694442,746790,786685,823439,855120,855432,855432,717024,855432,855432,855432,855432,855432,855432,855432,855432,855432,1152595,1283148,1283148,1283148,1283148,1283148,1283148...
78743,427716,427716,427716,427716,427716,427716,427716,430628,848882,855432,855432,855432,855432,855432,855432,855432,840747,650952,498717,497528,496508,495727,495078,494541,493926,493025,492284,797388,918214,917562,917163,916908,916394,916254,916005...
79530,427716,427716,427716,427716,427716,427716,427716,492402,805049,767983,717269,669606,622826,565073,513365,466362,429334,356256,427716,427716,427716,427716,427716,427716,427716,427716,427716,1016290,1169408,1074549,980431,888630,855432,855432,855...
80578,427716,427716,427716,427716,427716,427716,427716,484994,552738,427716,427716,427716,427716,427716,427716,427716,427716,358519,427716,427716,427716,427716,427716,427716,427716,427716,427716,1020131,1283148,1283148,1283148,1282190,1225228,1136137...
81288,427716,427716,427716,427716,427716,427716,428995,462685,529072,427716,427716,427716,427716,427716,427716,427716,427716,358938,427716,427716,427716,427716,427716,427716,427716,427716,427716,834892,1083693,1167893,1259717,1283148,1283148,1283148,...
101378,553062,601525,649901,698192,746374,794471,841195,855432,533863,427716,427716,427716,427716,427716,427716,427716,427716,368489,427716,427716,427716,427716,427716,427716,427716,427716,427716,730771,855432,855432,860684,934212,1024501,1116834,121...
167225,855432,855432,855432,855432,855432,855432,855432,855432,722111,416840,427716,427716,427716,427716,427716,427716,427716,374154,427716,427716,427716,427716,427716,427716,427716,427716,427716,740602,855432,855432,855432,855432,855432,855432,85543...
169453,848634,805264,756773,708089,659494,610996,562583,514367,460958,416347,427716,427716,427716,427716,427716,440270,487925,454299,714168,714168,714204,714822,714822,714822,714822,714822,714822,1034430,1141884,1141884,1141884,1141284,1141230,114069...
91620,433190,427716,427716,427716,427716,427716,427716,427716,427716,496256,617883,670942,718494,763924,814426,853127,855432,726462,855432,855432,855432,855432,855432,855432,855432,855432,855432,1170682,1283148,1283148,1283148,1283148,1283148,1283148...
87540,427716,427716,427716,427716,427716,427716,427716,427716,427716,694104,855432,855432,855432,855432,855432,855432,855432,724606,589106,594486,594486,594486,594486,594486,594862,595140,595228,907765,1023894,1024818,1025307,1025734,1026248,1026824,...
88926,427716,427716,427716,427716,427716,427716,427716,427716,427716,534665,766682,746722,690027,633700,582289,533103,485449,379220,419560,427716,427716,427716,427716,427716,427716,427716,427716,975301,1088276,1009126,950424,884150,855432,855432,8554...
90372,427716,427716,427716,427716,427716,427716,427716,427716,427716,419378,569339,427716,427716,427716,427716,427716,427716,368618,422997,427716,427716,427716,427716,427716,427716,427716,427716,1122376,1283148,1283148,1283148,1278947,1188665,1068120...
91901,427716,427716,427716,427716,427716,427716,427716,427716,427942,509950,541250,427716,427716,427716,427716,427716,427716,374785,427425,427716,427716,427716,427716,427716,427716,427716,427716,976310,1134545,1220966,1280962,1283148,1283148,1283148,...
93445,442140,490388,539979,589489,638896,688221,737486,786639,825338,569735,427711,427716,427716,427716,427716,427716,427716,388147,427716,427716,427716,427716,427716,427716,427716,427716,427716,789018,855432,855432,885045,986537,1097861,1209392,1280...
185561,854011,855432,855432,855432,855432,855432,831858,478089,437745,427716,427716,427716,427716,427716,427716,427716,427716,402601,427716,427716,427716,427716,427716,427716,427716,427716,427716,774004,855432,855432,855432,855432,855432,855432,88795...
192123,855432,855432,854775,822394,772548,722802,623796,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,399727,616666,619211,618542,617826,617084,616312,615341,613835,612976,951684,1038870,1038007,1036417,1034814,1033471,1032173...
130433,544768,494641,445273,427716,427716,427716,426524,427716,430836,470914,518863,565976,618339,668790,721293,775400,826814,789321,855083,855432,855432,855432,855432,855432,855432,855432,855432,1190669,1283148,1283148,1283148,1283148,1283148,128314...
97446,427716,427716,427716,427716,441911,620291,713366,783741,841550,855432,855432,855432,855432,855432,855432,855432,855432,812898,686853,687676,688750,690309,691264,692265,693358,694550,696274,1034708,1126316,1127479,1129393,1131059,1132560,1134234...
97446,427716,427716,427716,486154,781589,855432,855432,855432,855432,855432,855432,840516,789442,736444,678239,629325,586644,508001,427716,427716,427716,427716,427716,427716,427716,427716,427716,771351,855432,855432,855432,855432,855432,855432,849867...
97446,427716,427716,467611,791447,788599,729040,670223,624688,581064,529060,472704,429732,427716,427716,427716,427716,427716,413557,427716,427716,427716,427716,427716,427716,427716,427716,427716,774407,855432,855432,855432,855432,855432,855432,816586...
97446,427716,427716,540837,442072,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,416292,427716,427716,427716,427716,427716,427716,548260,612970,611719,625720,694829,784439,874651,967290,1037291,1044818,9607...
97446,427716,427716,570171,413696,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,415423,427716,427716,427716,427716,427716,427716,702976,855432,855432,855432,855432,855432,855432,855432,874802,947661,953656...
158510,725445,776524,831106,519377,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,419556,427716,427716,427716,427716,427716,427716,702023,855432,855432,855432,855432,855432,855432,855432,855432,855432,78414...
196758,855432,855432,855432,530595,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,429462,529968,528280,526633,525065,522666,520974,792976,944700,942614,940734,938276,936227,934216,931562,929420,927169,87077...
168915,698847,647495,596221,452765,419831,427631,426494,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,437927,855432,855432,855432,855432,855432,855432,1129879,1283148,1283148,1283148,1283148,1283148,1283148,1283148,1283148,128...
100062,427716,427716,427716,427716,427716,427716,426188,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,438061,776864,778622,780985,782838,784887,787204,1063198,1219292,1221768,1223964,1226640,1228796,1231489,1233866,1236596,123...
100690,427716,427716,427716,427716,427716,427716,426408,427716,427716,427716,427716,427716,427716,416982,361495,303862,253101,228483,427716,427716,427716,427716,427716,427716,699229,855432,855432,855432,855432,855432,855432,855432,855432,855432,78931...
101820,427716,427716,427716,427716,427716,427716,395241,353468,286753,226208,167641,109763,52497,4735,0,0,0,35176,427716,427716,427716,427716,427716,427716,697857,855432,855432,855432,855432,855432,855432,855432,855432,855432,785039,427716,427716,361...
102536,427716,427716,427716,427716,427716,427716,336293,0,0,0,0,0,0,0,0,0,0,27342,427716,427716,427716,427716,427716,427716,696879,855432,855432,855432,855432,855432,855432,855432,855432,855432,793237,427716,427716,364854,0,0,286270,427716,427716,427...
103656,427716,427716,427716,427716,427716,427523,206411,0,0,0,0,0,0,0,0,0,0,6522,427312,427716,427716,427716,427716,427716,696510,855432,855432,855432,855432,855432,855432,855432,855432,855432,811788,427716,427716,368436,0,0,265209,427716,427716,4277...
104458,427716,427716,427716,427716,427716,352480,0,0,0,0,0,0,0,0,0,0,0,3692,427098,427716,427716,427716,427716,427716,631964,755852,759097,760966,761958,763121,764836,766905,769314,771616,735076,345312,345619,298371,0,0,250584,427716,427716,427716,42...
105532,427716,427716,427716,427716,327085,34560,0,0,0,0,0,0,0,0,0,0,0,10711,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,386920,0,0,0,0,0,101535,258527,353715,423716,427716,427716,427...
106348,427639,398428,345694,247521,93961,0,0,0,0,0,0,0,0,0,0,0,0,10989,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,371121,0,0,0,0,0,0,0,0,24903,119575,213243,312618,382879,427377,427...
14096,23571,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10030,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,427716,348741,0,0,0,0,0,0,0,0,0,0,0,0,0,25731,84592,150648,228990,316618,398095,427670,427716,4...
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,165,9282,11967,15143,18127,21508,24433,27770,30603,33753,37010,40727,44120,47874,51259,54524,57713,48199,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,41540,119724,194714,350445,586855,602925,653966,705978,735616,731340,67...
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18288,0,0,0,0,256,3020,4608,4073,3653,9998,32915,53207,73599,87147,95117,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

lib/Algorithm/RandomPointGenerator.pm  view on Meta::CPAN

    ....
    ....
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,165,9282,11967,15143, .....
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,....

The C<bounding_box_file> parameter of the constructor should delineate the portion of
the plane to which the input histogram corresponds.  Here is an example of the
contents of an actual file supplied for this option:

     -71.772016, -70.431923
     -34.254251,  -33.203240

Apart from any comment lines, there must exist exactly two lines in the bounding-box
file, with the first line indicating the left and the right limits of the horizontal
coordinates and the second line indicating the lower and the upper limits of the
vertical coordinates.  (The values shown above are the longitude and the latitude
limits for a region in Chile, in case you are curious.)

=back 

=head2 Constructor Parameters:



( run in 0.604 second using v1.01-cache-2.11-cpan-7add2cbd662 )