Skip to content

Commit

Permalink
chore: ansification
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregungory committed Apr 17, 2024
1 parent 4f0cd8e commit 1cbf2bc
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/common/multisamp.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef lint
static const char RCSid[] = "$Id: multisamp.c,v 2.5 2003/06/07 12:50:20 schorsch Exp $";
static const char RCSid[] = "$Id: multisamp.c,v 2.6 2024/04/17 15:07:29 greg Exp $";
#endif
/*
* Binary space partitioning curve for multidimensional sampling.
Expand All @@ -13,14 +13,13 @@ static const char RCSid[] = "$Id: multisamp.c,v 2.5 2003/06/07 12:50:20 schorsch

#include "random.h"


/* Convert 1-dimensional sample to N dimensions */
void
multisamp(t, n, r) /* convert 1-dimensional sample to N dimensions */
double t[]; /* returned N-dimensional vector */
register int n; /* number of dimensions */
double r; /* 1-dimensional sample [0,1) */
multisamp(double t[], int n, double r)
{
int j;
register int i, k;
int i, k;
int ti[8];
double s;

Expand All @@ -37,5 +36,5 @@ double r; /* 1-dimensional sample [0,1) */
}
i = n;
while (i-- > 0)
t[i] = 1./256. * (ti[i] + frandom());
t[i] = (1./256.) * (ti[i] + frandom());
}

0 comments on commit 1cbf2bc

Please sign in to comment.