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

  1. //===================================================================
  2. // contdist.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 _CONTDIST_H_
  18. #define _CONTDIST_H_
  19.  
  20. #include "numerics.h"
  21.  
  22. NUM_BEGIN
  23.  
  24. NUMERICS_EXPORT double betap(double x, double a, double b);
  25. //-------------------------------------------------------------------
  26. // Returns the value of the Beta random variable distribution
  27. // function with alpha a and beta b at the value x.
  28. //-------------------------------------------------------------------
  29.  
  30. NUMERICS_EXPORT double betav(double p, double a, double b);
  31. //-------------------------------------------------------------------
  32. // Returns the critical point of the Beta random variable
  33. // distribution function with alpha a and beta b associated with
  34. // probability p.
  35. //-------------------------------------------------------------------
  36.  
  37. NUMERICS_EXPORT double cauchyp(double x, double m, double s);
  38. //-------------------------------------------------------------------
  39. // Returns the value of the Cauchy random variable distribution
  40. // function with median m and scale parameter s at the value x.
  41. //-------------------------------------------------------------------
  42.  
  43. NUMERICS_EXPORT double cauchyv(double p, double t, double s);
  44. //-------------------------------------------------------------------
  45. // Returns the critical point of the Cauchy random variable
  46. // distribution function with median m and scale parameter s
  47. // associated with probability p.
  48. //-------------------------------------------------------------------
  49.  
  50. NUMERICS_EXPORT double dblexpp(double x, double m, double s);
  51. //-------------------------------------------------------------------
  52. // Returns the value of the Double Exponential random variable
  53. // distribution function with mean m and scale parameter s at the
  54. // value x.
  55. //-------------------------------------------------------------------
  56.  
  57. NUMERICS_EXPORT double dblexpv(double p, double m, double s);
  58. //-------------------------------------------------------------------
  59. // Returns the critical point of the Double Exponential random
  60. // variable distribution function with mean m and scale parameter s
  61. // associated with probability p.
  62. //-------------------------------------------------------------------
  63.  
  64. NUMERICS_EXPORT double expp(double x, double b = 1.0);
  65. //-------------------------------------------------------------------
  66. // Returns the value of the Exponential random variable distribution
  67. // function with mean b at the value x.
  68. //-------------------------------------------------------------------
  69.  
  70. NUMERICS_EXPORT double expv(double p, double b = 1.0);
  71. //-------------------------------------------------------------------
  72. // Returns the critical point of the Exponential random variable
  73. // distribution function with mean b associated with probability p.
  74. //-------------------------------------------------------------------
  75.  
  76. NUMERICS_EXPORT double gammap(double x, double a, double b);
  77. //-------------------------------------------------------------------
  78. // Returns the value of the Gamma random variable distribution
  79. // function with alpha a and beta b at the value x.
  80. //-------------------------------------------------------------------
  81.  
  82. NUMERICS_EXPORT double gammav(double p, double a, double b);
  83. //-------------------------------------------------------------------
  84. // Returns the critical point of the Gamma random variable
  85. // distribution function with alpha a and beta b associated with
  86. // probability p.
  87. //-------------------------------------------------------------------
  88.  
  89. NUMERICS_EXPORT double logisticp(double x, double m, double b);
  90. //-------------------------------------------------------------------
  91. // Returns the value of the Logistic random variable distribution
  92. // function with mean m and beta b at the value x.
  93. //-------------------------------------------------------------------
  94.  
  95. NUMERICS_EXPORT double logisticv(double p, double m, double b);
  96. //-------------------------------------------------------------------
  97. // Returns the critical point of the Logistic random variable
  98. // distribution function with mean m and beta b associated with
  99. // probability p.
  100. //-------------------------------------------------------------------
  101.  
  102. NUMERICS_EXPORT double lognormp(double x, double m, double v);
  103. //-------------------------------------------------------------------
  104. // Returns the value of the Lognormal random variable distribution
  105. // function with mean m and scale parameter v at the value x.
  106. //-------------------------------------------------------------------
  107.  
  108. NUMERICS_EXPORT double lognormv(double p, double m, double v);
  109. //-------------------------------------------------------------------
  110. // Returns the critical point of the Lognormal random variable
  111. // distribution function with mean m and scale parameter v associated
  112. // with probability p.
  113. //-------------------------------------------------------------------
  114.  
  115. NUMERICS_EXPORT double rayleighp(double x, double s);
  116. //-------------------------------------------------------------------
  117. // Returns the value of the Rayleigh random variable distribution
  118. // function with scale parameter s at the value x.
  119. //-------------------------------------------------------------------
  120.  
  121. NUMERICS_EXPORT double rayleighv(double p, double s);
  122. //-------------------------------------------------------------------
  123. // Returns the critical point of the Rayleigh random variable
  124. // distribution function with scale parameter s associated with
  125. // probability p.
  126. //-------------------------------------------------------------------
  127.  
  128. NUMERICS_EXPORT double uniformp(double u, double a = 0.0, double b = 1.0);
  129. //-------------------------------------------------------------------
  130. // Returns the value of the Uniform random variable distribution
  131. // function on the interval [a,b] at the value u.
  132. //-------------------------------------------------------------------
  133.  
  134. NUMERICS_EXPORT double uniformv(double p, double a = 0.0, double b = 1.0);
  135. //-------------------------------------------------------------------
  136. // Returns the critical point of the Uniform random variable
  137. // distribution function on the interval [a,b] associated with
  138. // probability p.
  139. //-------------------------------------------------------------------
  140.  
  141. NUMERICS_EXPORT double weibullp(double x, double g, double b);
  142. //-------------------------------------------------------------------
  143. // Returns the value of the Weibull random variable distribution
  144. // function with gamma g and beta b at the value x.
  145. //-------------------------------------------------------------------
  146.  
  147. NUMERICS_EXPORT double weibullv(double p, double g, double b);
  148. //-------------------------------------------------------------------
  149. // Returns the critical point of the Weibull random variable
  150. // distribution function with gamma g and beta b associated with
  151. // probability p.
  152. //-------------------------------------------------------------------
  153.  
  154. NUM_END
  155.  
  156. #endif
  157.  
  158. //===================================================================
  159. // Revision History
  160. //
  161. // Version 1.0 - 08/28/1998 - New.
  162. // Version 1.1 - 04/10/1999 - Added Numerics namespace.
  163. //===================================================================
  164.  
  165.