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]

Re: random


> In the meanwhile, I noticed a few minor things, probably you have
> already those corrected in your working copy... Anyway: few overlong
> lines at the beginning of bits/random.h; some copyright dates wrong
> (i.e., new files having 2007, 2008 too); pointless - now that the two
> implementations are completely separate - _GLIBCXX_INCLUDE_AS_TR1 /
> _GLIBCXX_INCLUDE_AS_CXX dances; likely unnecessary inclusion of the
> huge <iostream> vs <iosfwd> in bits/random.tcc.

Also, some of the doxygen markup kills LaTex. These are the problematic
ones, although generated output (see gcc.gnu.org) can be improved.

-benjamin
Index: include/bits/random.h
===================================================================
--- include/bits/random.h	(revision 145488)
+++ include/bits/random.h	(working copy)
@@ -2360,7 +2360,6 @@
    * @brief A cauchy_distribution random number distribution.
    *
    * The formula for the normal probability mass function is
-   * @f$ p(x|a,b) = \( \pi b \( 1 + \( \frac{x-a}{b} \)^2 \) \)^{-1} @f$
    */
   template<typename _RealType = double>
     class cauchy_distribution
@@ -2513,9 +2512,6 @@
    * @brief A fisher_f_distribution random number distribution.
    *
    * The formula for the normal probability mass function is
-   * @f$ p(x|m,n) = \frac{\Gamma((m+n)/2)}{\Gamma(m/2)\Gamma(n/2)}
-   *                \(\frac{m}{n}\)^{m/2} x^{(m/2)-1}
-   *                \( 1 + \frac{mx}{n} \)^{-(m+n)/2} @f$
    */
   template<typename _RealType = double>
     class fisher_f_distribution
@@ -2668,8 +2664,6 @@
    * @brief A student_t_distribution random number distribution.
    *
    * The formula for the normal probability mass function is
-   * @f$ p(x|n) = \frac{1}{\sqrt(n\pi)} \frac{\Gamma((n+1)/2)}{\Gamma(n/2)}
-   *              \( 1 + \frac{x^2}{n} \) ^{-(n+1)/2} @f$
    */
   template<typename _RealType = double>
     class student_t_distribution

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]