# Changeset 352:0badf3bb38c2 in lemon

Ignore:
Timestamp:
10/28/08 14:47:57 (11 years ago)
Branch:
default
Phase:
public
Message:

Minor doc improvements

File:
1 edited

Unmodified
Added
Removed
• ## lemon/random.h

 r351 /// @{ ///\name Initialization /// /// @{ /// \brief Default constructor /// } /// @} ///\name Uniform distributions /// /// @{ /// \brief Returns a random real number from the range [0, 1) /// return _random_bits::IntConversion::convert(core); } /// @} unsigned int uinteger() { ///\name Non-uniform distributions /// ///@{ /// \brief Returns a random bool /// \brief Returns a random bool with given probability of true result. /// /// It returns a random bool with given probability of true result. } /// Standard Gauss distribution /// Standard Gauss distribution. /// Standard normal (Gauss) distribution /// Standard normal (Gauss) distribution. /// \note The Cartesian form of the Box-Muller /// transformation is used to generate a random normal distribution. return std::sqrt(-2*std::log(S)/S)*V1; } /// Gauss distribution with given mean and standard deviation /// Gauss distribution with given mean and standard deviation. /// Normal (Gauss) distribution with given mean and standard deviation /// Normal (Gauss) distribution with given mean and standard deviation. /// \sa gauss() double gauss(double mean,double std_dev) /// lognormal(). std::pair lognormalParamsFromMD(double mean, double std_dev) double std_dev) { double fr=std_dev/mean; } /// Lognormal distribution with given mean and standard deviation /// Lognormal distribution with given mean and standard deviation. /// return lognormal(lognormalParamsFromMD(mean,std_dev)); } /// Exponential distribution with given mean ///\name Two dimensional distributions /// ///@{ return dim2::Point(V1,V2); } /// A kind of two dimensional Gauss distribution /// A kind of two dimensional normal (Gauss) distribution /// This function provides a turning symmetric two-dimensional distribution.
Note: See TracChangeset for help on using the changeset viewer.