]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
random.h: Fix equation in comment of Weibull distro.
authorEdward Smith-Rowland <3dw4rd@verizon.net>
Wed, 30 Dec 2009 02:08:23 +0000 (02:08 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 30 Dec 2009 02:08:23 +0000 (02:08 +0000)
2009-12-29  Edward Smith-Rowland  <3dw4rd@verizon.net>

* include/bits/random.h: Fix equation in comment of Weibull distro.

From-SVN: r155515

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/random.h

index 22c8a637e2824ea924de331ce440f73d10857a4c..43130195cbc0c1edcf75ad15a6f0fafffbee64b7 100644 (file)
@@ -1,3 +1,7 @@
+2009-12-29  Edward Smith-Rowland  <3dw4rd@verizon.net>
+
+       * include/bits/random.h: Fix equation in comment of Weibull distro.
+
 2009-12-29  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * include/std/bitset (bitset<>::to_ullong, _M_do_to_ullong): Add.
index ab661e9594cb2e357e5b042c6e39b49e9d66e9e9..c86eb9947f84520adeca078179b2a17c8dae62d5 100644 (file)
@@ -3753,8 +3753,8 @@ namespace std
    * @brief A weibull_distribution random number distribution.
    *
    * The formula for the normal probability density function is
-   * @f$ p(x|\alpha,\beta) = \frac{a}{b} (frac{x}{b})^{a-1}
-   *                         \exp{(-(frac{x}{b})^a)} @f$.
+   * @f$ p(x|\alpha,\beta) = \frac{\alpha}{\beta} (\frac{x}{\beta})^{\alpha-1}
+   *                         \exp{(-(\frac{x}{\beta})^\alpha)} @f$.
    */
   template<typename _RealType = double>
     class weibull_distribution