Ignore:
Timestamp:
Aug 9, 2005, 10:35:09 AM (17 years ago)
Author:
Peter
Message:

corrected dox

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/random/random.h

    r379 r380  
    262262  /// Discrete uniform distribution also known as the "equally likely
    263263  /// outcomes" distribution. Each outcome, in this case an integer
    264   /// from [a,b) , have equal probability to occur.
    265   ///
    266   /// Distribution function \f$ p(k) = \frac{1}{b-a} \f$ for \f$ a \le
    267   /// k < b \f$ \n
    268   /// Expectation value: \f$ \frac{a+b-1}{2} \f$ \n
    269   /// Variance: \f$ \frac{1}{3}((b-a)^2-1) \f$
     264  /// from [0,n-1] , have equal probability to occur.
     265  ///
     266  /// Distribution function \f$ p(k) = \frac{1}{n+1} \f$ for \f$ 0 \le
     267  /// k < n \f$ \n
     268  /// Expectation value: \f$ \frac{n-1}{2} \f$ \n
     269  /// Variance: \f$ \frac{1}{12}(n-1)(n+1) \f$
    270270  ///
    271271
Note: See TracChangeset for help on using the changeset viewer.