home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / math / ols / distribs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-28  |  2.8 KB  |  96 lines

  1.  
  2.  
  3. /* File bivnor.c */
  4. double pnorm2 (double ah, double ak, double r);
  5. /* Bivariate normal probability */
  6. double dnorm2 (double x, double y, double rho);
  7. /* Bivariate normal density */
  8. void ranbivnor (double mu1, double mu2,
  9.         double a, double b, double c,
  10.         double *x, double *y);
  11. /* return draw from bivariate normal.  Creates x and y.
  12.     mu1 and mu2 are means.
  13.     a b and c are created by next function. */
  14. int mk_abc_bivnor (double v1, double v2, double rho,
  15.            double *a, double *b, double *c);
  16. /* creates magic numbers a b and c for previous function.
  17.     Input: two variances and one correlation coefficient.
  18.     Returns magic numbers a b and c. */
  19.  
  20. /* File normal.c */
  21. double critz (double p);
  22. /* Inverse Univariate Normal Probability. */
  23. double dnorm1 (double x);
  24. /* Univariate Normal Density */
  25. double lndnorm1 (double x);
  26. /* ln(dnorm1), faster. */
  27.  
  28. /* File pnorm1.c */
  29. double pnorm1 (double x);
  30. /* Univariate Normal Probability */
  31.  
  32. /* File binomial.c */
  33. double binomc (int x, int n);
  34. /* cumulative binomial */
  35. double binomp (int x, int n, double p);
  36. /* binomial probability */
  37.  
  38. /* File t.c */
  39. int tprob (double t, int dof, double *probability);
  40. /* probability of t_{dof} */
  41. double critt (double p, int dof);
  42. /* what is the t which can give this p? */
  43.  
  44. /* File chisq.c */
  45. double pchisq (double x, int dof);
  46. /* Prob(chisq < x) with dof degrees of freedom. */
  47. double critchi (double p, int dof);
  48. /* Return x s.t. Prob(chisq < x) = p, we're talking dof d.o.f.  */
  49.  
  50. /* File f.c */
  51. double pF (double F, int df1, int df2);
  52. /* Prob(f < F) with (df1, df2) degrees of freedom. */
  53. double critF (double p, int df1, int df2);
  54. /* find x s.t. Prob(f<F) = p.  F(df1, df2). */
  55.  
  56. /* File gasdev.c */
  57. double gasdev (int *idum);
  58.  
  59. /* File ranev.c */
  60. double ranev (int *idum);
  61.  
  62. /* File beta.c
  63. Beta distribution.  WARNING: horribly inefficient.  Not too precise. */
  64. double beta_dens (double a, double b, double x);
  65. double beta_prob (double beta_a, double beta_b, double x);
  66. double beta_inv (double beta_a, double beta_b, double P);
  67. double betadev (double a, double b, int *seed);
  68.  
  69. /* File gamma.c */
  70. double gamma (double x);    /* gamma function, not distribution */
  71.  
  72. /* File gammln.c */
  73. double gammln (double x);    /* log gamma */
  74.  
  75. /* File psi.c */
  76. double psi (double x);        /* derivative of log gamma */
  77.  
  78. /* File gammln_cr.c */
  79. double gammln_cr (double x);    /* "crude" log gamma (from Numerical Recipes) */
  80.  
  81. /* File bindev.c */
  82. /* binomially distributed random numbers */
  83. int bindev (int n, float pp, int *iseed);
  84.  
  85. /* File cheapnor.c */
  86. double ipnorm1 (double *table, double x);
  87. void tsetup (double *table);
  88.  
  89. /* File censbc.c */
  90. double mc_e_cens_bc (double sigma, double lambda,
  91.              double betax, double min, double max,
  92.              double convergence);
  93.  
  94. /* File mvn.c */
  95. void ranmvn (int N, double *mu, double **P, double *v);
  96.