Doxygen Source Code Documentation
cdf_27.c
Go to the documentation of this file.00001 #include "cdflib.h" 00002 void cumchi(double *x,double *df,double *cum,double *ccum) 00003 /* 00004 ********************************************************************** 00005 00006 void cumchi(double *x,double *df,double *cum,double *ccum) 00007 CUMulative of the CHi-square distribution 00008 00009 00010 Function 00011 00012 00013 Calculates the cumulative chi-square distribution. 00014 00015 00016 Arguments 00017 00018 00019 X --> Upper limit of integration of the 00020 chi-square distribution. 00021 X is DOUBLE PRECISION 00022 00023 DF --> Degrees of freedom of the 00024 chi-square distribution. 00025 DF is DOUBLE PRECISION 00026 00027 CUM <-- Cumulative chi-square distribution. 00028 CUM is DOUBLE PRECISIO 00029 00030 CCUM <-- Compliment of Cumulative chi-square distribution. 00031 CCUM is DOUBLE PRECISI 00032 00033 00034 Method 00035 00036 00037 Calls incomplete gamma function (CUMGAM) 00038 00039 ********************************************************************** 00040 */ 00041 { 00042 static double a,xx; 00043 /* 00044 .. 00045 .. Executable Statements .. 00046 */ 00047 a = *df*0.5e0; 00048 xx = *x*0.5e0; 00049 cumgam(&xx,&a,cum,ccum); 00050 return; 00051 } /* END */