pgLatLon
diff latlon-v0008.c @ 45:10640afbe2ea
Use the term "numerical integration" instead of "Monte Carlo simulation" in documentation and comments (since no real randomness is involved)
author | jbe |
---|---|
date | Tue Oct 25 22:15:17 2016 +0200 (2016-10-25) |
parents | 1b9cd45e9e48 |
children |
line diff
1.1 --- a/latlon-v0008.c Tue Oct 25 18:54:59 2016 +0200 1.2 +++ b/latlon-v0008.c Tue Oct 25 22:15:17 2016 +0200 1.3 @@ -982,9 +982,9 @@ 1.4 } 1.5 1.6 1.7 -/*-------------------------------* 1.8 - * Monte Carlo based functions * 1.9 - *-------------------------------*/ 1.10 +/*------------------------------------------------------------* 1.11 + * Functions using numerical integration (Monte Carlo like) * 1.12 + *------------------------------------------------------------*/ 1.13 1.14 /* half of (spherical) earth's surface area */ 1.15 #define PGL_HALF_SURFACE (PGL_RADIUS * PGL_DIAMETER * M_PI) 1.16 @@ -1041,7 +1041,7 @@ 1.17 return PGL_HALF_SURFACE * double_share; 1.18 } 1.19 1.20 -/* calculate covered area using Monte Carlo method */ 1.21 +/* calculate covered area using Monte Carlo like method */ 1.22 /* TODO: inefficient, should be replaced by different method */ 1.23 static double pgl_monte_carlo_area(pgl_cluster *cluster, int samples) { 1.24 pgl_point *points;