Boost logo

Boost :

From: John Ky (newhoggy_at_[hidden])
Date: 2007-05-24 20:00:56


Hi,

I'm trying to upgrade some software to use boost 1.34 from an earlier
version, but I'm stuck on this particular function because I don't
understand statistics.

#include <boost/integer.hpp>
#include <boost/random/gamma_distribution.hpp>

inline double alpha_value(int df, double chisq)
{
  if (chisq < 0.0 || df < 1)
  {
    return 0.0;
  }
  return boost::math::gamma_Q(((double)df) / 2.0, chisq / 2.0);
}

Does anyone know the equivalent way of doing this in 1.34?

Thanks

-John


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk