dcdflib.chs
来自「unix环境下计算符合常用概率分布的随机变量的集合」· CHS 代码 · 共 186 行
CHS
186 行
DCDFLIB Library of C Routines for Cumulative Distribution Functions, Inverses, and Other Parameters (February, 1994) Summary Documentation of Each Routine Compiled and Written by: Barry W. Brown James Lovato Kathy Russell Department of Biomathematics, Box 237 The University of Texas, M.D. Anderson Cancer Center 1515 Holcombe Boulevard Houston, TX 77030 This work was supported by grant CA-16672 from the National Cancer Institute.WHICH and STATUS are pointers to int , all other arguements arepointers to double.-------------------- DISTRIBUTION WHICH PARAMETERS INPUT RANGE SEARCH RANGE REQUIREMENTS-------------------- Beta void cdfbet(int *which,double *p,double *q,double *x,double *y, double *a,double *b,int *status,double *bound) 1 P and Q [0,1];[0,1] ----------- SUM to 1.0 2 X and Y [0,1];[0,1] [0,1],[0,1] SUM to 1.0 3 A (0,infinity) [1E-300,1E300] 4 B (0,infinity) [1E-300,1E300]-------------------- Binomialvoid cdfbin(int *which,double *p,double *q,double *s,double *xn, double *pr,double *ompr,int *status,double *bound) 1 P and Q [0,1];[0,1] ----------- SUM to 1.0 2 S [0,XN] [0,XN] 3 XN (0,infinity) [1E-300,1E300] 4 PR and OMPR [0,1];[0,1] [0,1];[0,1] SUM to 1.0-------------------- Chi-squarevoid cdfchi(int *which,double *p,double *q,double *x,double *df, int *status,double *bound) SUBROUTINE CDFCHI( WHICH, P, Q, X, DF, STATUS, BOUND ) 1 P and Q [0,1],(0,1] ----------- SUM to 1.0 2 X [0,infinity] [0,1E300] 3 DF (0,infinity) [1E-300,1E300]-------------------- Noncentral Chi-squarevoid cdfchn(int *which,double *p,double *q,double *x,double *df, double *pnonc,int *status,double *bound) 1 P and Q [0,1-1E-16],none ----------- 2 X [0,infinity] [0,1E300] 3 DF (0,infinity) [1E-300,1E300] 4 PNONC [0,infinity) [0,1E4]NOTE: We do not yet have a method to calculation the Noncentral Chi-Squaredistribution acurately near 1; therefore, Q is not used by CDFCHN. Thereare no input requirements of Q, and when WHICH is 1, Q is returned as 1-P.-------------------- Fvoid cdff(int *which,double *p,double *q,double *f,double *dfn, double *dfd,int *status,double *bound) 1 P and Q [0,1],(0,1] ----------- SUM to 1.0 2 F [0,infinity) [0,1E300] 3 DFN (0,infinity) [1E-300,1E300] 4 DFD (0,infinity) [1E-300,1E300]-------------------- Noncentral Fvoid cdffnc(int *which,double *p,double *q,double *f,double *dfn, double *dfd,double *phonc,int *status,double *bound) 1 P and Q [0,1-1E-16],none ----------- 2 F [0,infinity) [0,1E300] 3 DFN (0,infinity) [1E-300,1E300] 4 DFD (0,infinity) [1E-300,1E300] 5 PNONC [0,infinity) [0,1E4]NOTE: We do not yet have a method to calculation the Noncentral Fdistribution acurately near 1; therefore, Q is not used by CDFF. There are no input requirements of Q, and when WHICH is 1, Q is returnedas 1-P.-------------------- Gammavoid cdfgam(int *which,double *p,double *q,double *x, double *shape,double *scale,int *status,double *bound) 1 P and Q [0,1],(0,1] ----------- SUM to 1.0 2 X [0,infinity) [0,1E300] 3 SHAPE (0,infinity) [1E-300,1E300] 4 SCALE (0,infinity) [1E-300,1E300]-------------------- Negative Binomialvoid cdfnbn(int *which,double *p,double *q,double *s,double *xn, double *pr,double *ompr,int *status,double *bound) 1 P and Q [0,1];(0,1] ----------- SUM to 1.0 2 S [0,infinity) [0,1E300] 3 XN [0,infinity) [0,1E300] 4 PR and OMPR [0,1];[0,1] [0,1];[0,1] SUM to 1.0-------------------- Normalvoid cdfnor(int *which,double *p,double *q,double *x, double *mean,double *sd,int *status,double *bound) 1 P and Q (0,1],(0,1] ----------- SUM to 1.0 2 X (-inf.,inf.) ----------- 3 MEAN (-inf.,inf.) ----------- 4 SD (0,infinity) ------------------------------- Poissonvoid cdfpoi(int *which,double *p,double *q,double *s, double *xlam,int *status,double *bound) 1 P and Q [0,1],(0,1] ----------- SUM to 1.0 2 S [0,infinity) [0,1E300] 3 XLAM [0,infinity) [0,1E300]-------------------- Student's tvoid cdft(int *which,double *p,double *q,double *t,double *df, int *status,double *bound) 1 P and Q (0,1],(0,1] ----------- SUM to 1.0 2 T (-inf.,inf.) [-1E300,1E300] 3 DF (0,infinity) [1E-300,1E10]
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?