aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Smith-Rowland <3dw4rd@verizon.net>2009-12-30 02:08:23 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2009-12-30 02:08:23 +0000
commit53bc54ecc08c35b05c33cf3493c90af73bcc6478 (patch)
treea46d9c9b0eefdf90b7c115c6066763d9f777bb0d
parentb6c524d03d962eb7ea365e7130bc4d7e051d9c11 (diff)
downloadgcc-53bc54ecc08c35b05c33cf3493c90af73bcc6478.zip
gcc-53bc54ecc08c35b05c33cf3493c90af73bcc6478.tar.gz
gcc-53bc54ecc08c35b05c33cf3493c90af73bcc6478.tar.bz2
random.h: Fix equation in comment of Weibull distro.
2009-12-29 Edward Smith-Rowland <3dw4rd@verizon.net> * include/bits/random.h: Fix equation in comment of Weibull distro. From-SVN: r155515
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/include/bits/random.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 22c8a63..4313019 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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.
diff --git a/libstdc++-v3/include/bits/random.h b/libstdc++-v3/include/bits/random.h
index ab661e9..c86eb99 100644
--- a/libstdc++-v3/include/bits/random.h
+++ b/libstdc++-v3/include/bits/random.h
@@ -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