X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fgsl-extras%2Fbinomial.c;h=847247d40771b3c97c4e8966123686cc4c691631;hb=392ab4052e2743f80664a4130b2b4ee5d82af7fe;hp=93ada9c019c6bc3f02350794eb529d9df43e52a2;hpb=4fdeb2145d081ff1b84e3f6c99f9d1c048c0d64a;p=pspp-builds.git diff --git a/lib/gsl-extras/binomial.c b/lib/gsl-extras/binomial.c index 93ada9c0..847247d4 100644 --- a/lib/gsl-extras/binomial.c +++ b/lib/gsl-extras/binomial.c @@ -1,7 +1,7 @@ /* cdf/binomial.c * * Copyright (C) 2004 Free Software Foundation, Inc. - * Written by Jason H. Stover. + * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -27,13 +27,12 @@ * * 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. */ -#include #include #include #include @@ -65,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