X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fgsl-extras%2Fbinomial.c;h=847247d40771b3c97c4e8966123686cc4c691631;hb=2da08e801be698df268f35ac6e21cc8a345ba1fb;hp=e053c3a67ea0fbebd2e43fe395cb938fbc51a99d;hpb=4f71ffe74a94ea89787705f1ba12a3dd810adda5;p=pspp-builds.git diff --git a/lib/gsl-extras/binomial.c b/lib/gsl-extras/binomial.c index e053c3a6..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 @@ -15,7 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* @@ -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