commit 96738f21aef83519e46dab47a5166c039b8b54d8
parent 9a0ea621bfcd545bffc28618e5552fad6a6661a2
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 13 Jul 2015 11:11:04 +0200
Rename the ssp_ran_sphere_pdf function to ssp_ran_sphere_uniform_pdf
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/ssp.h b/src/ssp.h
@@ -90,7 +90,7 @@ SSP_API const struct ssp_rng_type ssp_rng_mt19937_64;
/* 48-bits RANLUX builtin PRNG type of Lusher and James, 1994 */
SSP_API const struct ssp_rng_type ssp_rng_ranlux48;
/* A random_device RNG is a uniformly-distributed integer random number generator
- * that produces non-deterministic random numbers. It may may be implemented in
+ * that produces non-deterministic random numbers. It may be implemented in
* terms of an implementation-defined pseudo-random number engine if a
* non-deterministic source (e.g. a hardware device) is not available to the
* implementation. In this case each random_device object may generate the same
@@ -236,7 +236,7 @@ ssp_ran_sphere_uniform(struct ssp_rng* rng, float sample[4])
/* Return the probability distribution for a sphere uniform random variate */
static INLINE float
-ssp_ran_sphere_pdf(void)
+ssp_ran_sphere_uniform_pdf(void)
{
return (float)(1.0/(4.0*PI));
}
diff --git a/src/test_ssp_ran_sphere.c b/src/test_ssp_ran_sphere.c
@@ -50,7 +50,7 @@ main(int argc, char** argv)
CHECK(f, samps[i]);
CHECK(f3_is_normalized(f), 1);
CHECK(eq_epsf(samps[i][3], (float)(1.0/(4.0*PI)), 1.e-6f), 1);
- CHECK(eq_epsf(samps[i][3], ssp_ran_sphere_pdf(), 1.e-6f), 1);
+ CHECK(eq_epsf(samps[i][3], ssp_ran_sphere_uniform_pdf(), 1.e-6f), 1);
FOR_EACH(j, 0, i) {
CHECK(f3_eq_eps(samps[j], samps[i], 1.e-6f), 0);
}