X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fgsl-extras%2Fpoisson.c;h=3ce2bf5a0f554e4f031a53fff3d3b7b43741d07c;hb=b9f6480f1b451cb7873bb0591369504ff1b92595;hp=98f584ad5ebdf13afb5e8c23632ede80fb41e4b3;hpb=4f71ffe74a94ea89787705f1ba12a3dd810adda5;p=pspp-builds.git diff --git a/lib/gsl-extras/poisson.c b/lib/gsl-extras/poisson.c index 98f584ad..3ce2bf5a 100644 --- a/lib/gsl-extras/poisson.c +++ b/lib/gsl-extras/poisson.c @@ -1,7 +1,7 @@ /* cdf/poisson.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. */ /* * Computes the cumulative distribution function for a Poisson @@ -26,13 +26,12 @@ * * where Y is a gamma random variable with parameters k+1 and 1. * - * Reference: - * + * Reference: + * * W. Feller, "An Introduction to Probability and Its * Applications," volume 1. Wiley, 1968. Exercise 46, page 173, * chapter 6. */ -#include #include #include #include @@ -47,7 +46,7 @@ gslextras_cdf_poisson_P (const long k, const double lambda) { double P; double a; - + if ( lambda <= 0.0 ) { GSLEXTRAS_CDF_ERROR ("lambda <= 0", GSL_EDOM); @@ -72,7 +71,7 @@ gslextras_cdf_poisson_Q (const long k, const double lambda) { double P; double a; - + if ( lambda <= 0.0 ) { GSLEXTRAS_CDF_ERROR ("lambda <= 0", GSL_EDOM);