X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fgsl-extras%2Fbinomial.c;h=56c41de9bf864e432651f5bd222839057a9bc22d;hb=83ad8f5b760cb46bd1d86f60a40d6aace21118ef;hp=7736320d8bb106779354abddc229291f46c7223e;hpb=ebccf00cbddbcadb5883fa98ddbccbea67642295;p=pspp diff --git a/lib/gsl-extras/binomial.c b/lib/gsl-extras/binomial.c index 7736320d8b..56c41de9bf 100644 --- a/lib/gsl-extras/binomial.c +++ b/lib/gsl-extras/binomial.c @@ -27,8 +27,8 @@ * * where Y is a beta random variable with parameters k+1 and n-k. * - * Reference: - * + * Reference: + * * W. Feller, "An Introduction to Probability and Its * Applications," volume 1. Wiley, 1968. Exercise 45, page 173, * chapter 6. @@ -64,7 +64,7 @@ gslextras_cdf_binomial_P(const long k, const long n, const double p) b = (double) n - k; P = gsl_cdf_beta_Q( p, a, b); } - + return P; } double