home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 41 / IOPROG_41.ISO / soft / c++ / NUMCPP11.ZIP / normdist.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-04-10  |  3.5 KB  |  87 lines

  1. //===================================================================
  2. // normdist.h
  3. //
  4. // Version 1.1
  5. //
  6. // Written by:
  7. //   Brent Worden
  8. //   WordenWare
  9. //   email:  Brent@Worden.org
  10. //
  11. // Copyright (c) 1998-1999 WordenWare
  12. //
  13. // Created:  August 28, 1998
  14. // Revised:  April 10, 1999
  15. //===================================================================
  16.  
  17. #ifndef _NORMDIST_H_
  18. #define _NORMDIST_H_
  19.  
  20. #include "numerics.h"
  21.  
  22. NUM_BEGIN
  23.  
  24. NUMERICS_EXPORT double chisqp(double x2, double v);
  25. //-------------------------------------------------------------------
  26. // Returns the value of the Chi Square random variable distribution
  27. // function with v degrees of freedom at the value x2.
  28. //-------------------------------------------------------------------
  29.  
  30. NUMERICS_EXPORT double chisqv(double p, double v);
  31. //-------------------------------------------------------------------
  32. // Returns the critical point of the Chi Square random variable
  33. // distribution function with v degrees of freedom associated with
  34. // probability p.
  35. //-------------------------------------------------------------------
  36.  
  37. NUMERICS_EXPORT double fratiop(double f, double v1, double v2);
  38. //-------------------------------------------------------------------
  39. // Returns the value of the F-ratio random variable distribution
  40. // function with v1 degrees of freedom numerator and v2 degrees of
  41. // freedom denomenator at the value f.
  42. //-------------------------------------------------------------------
  43.  
  44. NUMERICS_EXPORT double fratiov(double p, double v1, double v2);
  45. //-------------------------------------------------------------------
  46. // Returns the critical point of the F-ratio random variable
  47. // distribution function with v1 degrees of freedom numerator and v2
  48. // degrees of freedom denomenator associatied with probability p.
  49. //-------------------------------------------------------------------
  50.  
  51. NUMERICS_EXPORT double normalp(double x, double m = 0.0, double v = 1.0);
  52. //-------------------------------------------------------------------
  53. // Returns the value of the Normal random variable distribution
  54. // function with mean m and variance v at the value x.
  55. //-------------------------------------------------------------------
  56.  
  57. NUMERICS_EXPORT double normalv(double p, double m = 0.0, double v = 1.0);
  58. //-------------------------------------------------------------------
  59. // Returns the critical point of the Normal random variable
  60. // distribution function with mean m and variance v associated
  61. // with probability p.
  62. //-------------------------------------------------------------------
  63.  
  64. NUMERICS_EXPORT double studtp(double t, double v);
  65. //-------------------------------------------------------------------
  66. // Returns the value of Student's T random variable distribution
  67. // function with v degrees of freedom at the value x.
  68. //-------------------------------------------------------------------
  69.  
  70. NUMERICS_EXPORT double studtv(double p, double v);
  71. //-------------------------------------------------------------------
  72. // Returns the critical point of Student's T random variable
  73. // distribution function with v degrees of freedom associated with
  74. // probability p.
  75. //-------------------------------------------------------------------
  76.  
  77. NUM_END
  78.  
  79. #endif
  80.  
  81. //===================================================================
  82. // Revision History
  83. //
  84. // Version 1.0 - 08/28/1998 - New.
  85. // Version 1.1 - 04/10/1999 - Added Numerics namespace.
  86. //===================================================================
  87.