attribution for gaussian random number algorithm
This commit is contained in:
1 parent
50fd8df3aa
commit
0d9f68198e
1 file changed
+1
@@ -27,6 +27,7 @@ double normalcdf(double z)
|
||||
|
||||
double gaussrand()
|
||||
{
|
||||
/* Marsaglia and Bray, ``A Convenient Method for Generating Normal Variables'' */
|
||||
static double V1, V2, S;
|
||||
static int phase = 0;
|
||||
double X;
|
||||
|
||||
Reference in new issue
Block a user