Print

Print


Commit in lcsim/src/org/lcsim/math/chisq on MAIN
ChisqProb.java+3-31.3 -> 1.4
Changed number of degrees of freedom from int to double to allow for "fuzzy" applications.

lcsim/src/org/lcsim/math/chisq
ChisqProb.java 1.3 -> 1.4
diff -u -r1.3 -r1.4
--- ChisqProb.java	8 Nov 2005 17:04:31 -0000	1.3
+++ ChisqProb.java	6 Jul 2007 22:06:28 -0000	1.4
@@ -3,7 +3,7 @@
  * for a system with <b> n </b>degrees of freedom would be exceeded by chance. Based on routines
  * in the book <em> "Numerical Recipes: The Art of Scientific Computing"</em>.
  * @author Norman Graf
- * @version $Id: ChisqProb.java,v 1.3 2005/11/08 17:04:31 tonyj Exp $
+ * @version $Id: ChisqProb.java,v 1.4 2007/07/06 22:06:28 ngraf Exp $
  *
  */
 
@@ -37,7 +37,7 @@
      *  @param x the value of chi-squared
      *  @return The incomplete gamma function P(a, x).
      */
-    public static double gammp(int a, double x)
+    public static double gammp(double a, double x)
     {
         if (x < 0.0 || a <= 0.0) System.out.println("Invalid arguments in routine gammp");
         if (x < (a+1.0))
@@ -76,7 +76,7 @@
      *  @param x the value of chi-squared
      *  @return The incomplete gamma function Q(a, x)= 1 - P(a, x).
      */
-    public static double gammq(int a, double x)
+    public static double gammq(double a, double x)
     {
         
         if (x < 0.0 || a <= 0.0) System.out.println("Invalid arguments in routine gammq");
CVSspam 0.2.8