This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
I noticed this while looking through the API docs. The equation for the Weibull distro was messed up.
Attachment:
CL_random_doc
Description: video/flv
Index: include/bits/random.h
===================================================================
--- include/bits/random.h (revision 155505)
+++ include/bits/random.h (working copy)
@@ -3753,8 +3753,8 @@
* @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
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |