Style cleanup, add comments

This commit is contained in:
Kevin Keogh
2017-07-31 00:05:43 -04:00
parent 0ec0e69bfe
commit 186e8e40e9
5 changed files with 82 additions and 66 deletions

View File

@@ -35,11 +35,11 @@ double normalpdf(double z)
}
double gaussrand()
double gaussrand(void)
{
/* Marsaglia and Bray, ``A Convenient Method for Generating Normal Variables'' */
static double V1, V2, S;
static int phase = 0;
static int phase;
double X;
if (phase == 0) {