COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/random.h

    r352 r351  
    541541    /// @{
    542542
     543    ///\name Initialization
     544    ///
     545    /// @{
     546
    543547    /// \brief Default constructor
    544548    ///
     
    705709    }
    706710
     711    /// @}
     712
     713    ///\name Uniform distributions
     714    ///
     715    /// @{
     716
    707717    /// \brief Returns a random real number from the range [0, 1)
    708718    ///
     
    761771      return _random_bits::IntConversion<Number, Word>::convert(core);
    762772    }
     773
     774    /// @}
    763775
    764776    unsigned int uinteger() {
     
    795807    ///\name Non-uniform distributions
    796808    ///
     809
    797810    ///@{
    798811
    799     /// \brief Returns a random bool with given probability of true result.
     812    /// \brief Returns a random bool
    800813    ///
    801814    /// It returns a random bool with given probability of true result.
     
    804817    }
    805818
    806     /// Standard normal (Gauss) distribution
    807 
    808     /// Standard normal (Gauss) distribution.
     819    /// Standard Gauss distribution
     820
     821    /// Standard Gauss distribution.
    809822    /// \note The Cartesian form of the Box-Muller
    810823    /// transformation is used to generate a random normal distribution.
     
    819832      return std::sqrt(-2*std::log(S)/S)*V1;
    820833    }
    821     /// Normal (Gauss) distribution with given mean and standard deviation
    822 
    823     /// Normal (Gauss) distribution with given mean and standard deviation.
     834    /// Gauss distribution with given mean and standard deviation
     835
     836    /// Gauss distribution with given mean and standard deviation.
    824837    /// \sa gauss()
    825838    double gauss(double mean,double std_dev)
     
    852865    /// lognormal().
    853866    std::pair<double,double> lognormalParamsFromMD(double mean,
    854                                                    double std_dev)
     867                                                   double std_dev)
    855868    {
    856869      double fr=std_dev/mean;
     
    860873    }
    861874    /// Lognormal distribution with given mean and standard deviation
    862 
     875   
    863876    /// Lognormal distribution with given mean and standard deviation.
    864877    ///
     
    867880      return lognormal(lognormalParamsFromMD(mean,std_dev));
    868881    }
    869 
     882   
    870883    /// Exponential distribution with given mean
    871884
     
    971984    ///\name Two dimensional distributions
    972985    ///
     986
    973987    ///@{
    974988
     
    9871001      return dim2::Point<double>(V1,V2);
    9881002    }
    989     /// A kind of two dimensional normal (Gauss) distribution
     1003    /// A kind of two dimensional Gauss distribution
    9901004
    9911005    /// This function provides a turning symmetric two-dimensional distribution.
Note: See TracChangeset for help on using the changeset viewer.