diff options
| author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-12-30 02:08:23 +0000 |
|---|---|---|
| committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-12-30 02:08:23 +0000 |
| commit | 67476d8b8a8602a4c078dadb7db0d263e62eda1d (patch) | |
| tree | a46d9c9b0eefdf90b7c115c6066763d9f777bb0d | |
| parent | bf7af1ec1f30b0ed9de28ea95fde68a9326ba246 (diff) | |
| download | ppe42-gcc-67476d8b8a8602a4c078dadb7db0d263e62eda1d.tar.gz ppe42-gcc-67476d8b8a8602a4c078dadb7db0d263e62eda1d.zip | |
2009-12-29 Edward Smith-Rowland <3dw4rd@verizon.net>
* include/bits/random.h: Fix equation in comment of Weibull distro.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155515 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | libstdc++-v3/ChangeLog | 4 | ||||
| -rw-r--r-- | libstdc++-v3/include/bits/random.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 22c8a637e28..43130195cbc 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 ab661e9594c..c86eb9947f8 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 |

