The R Project SVN R

Rev

Rev 8074 | Rev 42302 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8074 Rev 8431
Line 20... Line 20...
20
 *  DESCRIPTION
20
 *  DESCRIPTION
21
 *
21
 *
22
 *	The quantile function of the chi-squared distribution.
22
 *	The quantile function of the chi-squared distribution.
23
 */
23
 */
24
 
24
 
25
#include "Mathlib.h"
25
#include "nmath.h"
26
#include "dpq.h"
26
#include "dpq.h"
27
 
27
 
28
double qchisq(double p, double df, int lower_tail, int log_p)
28
double qchisq(double p, double df, int lower_tail, int log_p)
29
{
29
{
30
    return qgamma(p, 0.5 * df, 2.0, lower_tail, log_p);
30
    return qgamma(p, 0.5 * df, 2.0, lower_tail, log_p);