Changeset 1287


Ignore:
Timestamp:
Apr 24, 2008, 11:24:12 PM (13 years ago)
Author:
Peter
Message:

Fixes #87 - replace cumulative hypergeometric with GSL implementation
NOTE: This means that yat 0.5 will require GSL 1.8 or
later. configure.ac is updated to check for that.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEWS

    r1277 r1287  
    44
    55Version 0.5 (released DATE)
     6
     7  - yat now requires GSL 1.8 or later
    68
    79Version 0.4 (released 11 April 2008)
  • trunk/README

    r1275 r1287  
    3535
    3636GNU Scientific Library, [http://www.gnu.org/software/gsl/ GSL] version
    37 1.6 or later.
     371.8 or later.
    3838
    3939=== BLAS ===
  • trunk/configure.ac

    r1275 r1287  
    8484# Including AM_PATH_GSL macro from gsl.m4 distributed by GSL
    8585gsl_found="no"
    86 gsl_version="1.6"
     86gsl_version="1.8"
    8787sinclude(./build_support/gsl.m4)
    8888AX_PATH_GSL(${gsl_version},gsl_found="yes",gsl_version_check="no")
  • trunk/yat/statistics/utility.cc

    r1275 r1287  
    4040                              unsigned int n2, unsigned int t)
    4141  {
    42     double p=0;
    43     for (size_t i=0; i<=k; i++)
    44       p+= gsl_ran_hypergeometric_pdf(i, n1, n2, t);
    45     return p;
     42    return gsl_cdf_hypergeometric_P(k, n1, n2, t);
    4643  }
    4744
Note: See TracChangeset for help on using the changeset viewer.