lemon/random.cc
author Alpar Juttner <alpar@cs.elte.hu>
Sat, 22 Dec 2007 07:01:20 +0000
changeset 12 435bbc8127b3
child 16 22696f89d183
permissions -rw-r--r--
A better way of generating pareto distr, and swap its parameters.

- Pareto distribution is now generated as a composition of a Gamma and
an exponential one
- Similarly to gamma() and weibull(), the shape parameter became the first one.
     1 /* -*- C++ -*-
     2  *
     3  * This file is a part of LEMON, a generic C++ optimization library
     4  *
     5  * Copyright (C) 2003-2007
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     8  *
     9  * Permission to use, modify and distribute this software is granted
    10  * provided that this copyright notice appears in all copies. For
    11  * precise terms see the accompanying LICENSE file.
    12  *
    13  * This software is provided "AS IS" with no warranty of any kind,
    14  * express or implied, and with no claim as to its suitability for any
    15  * purpose.
    16  *
    17  */
    18 
    19 ///\file
    20 ///\brief Instantiation of the Random class.
    21 
    22 #include <lemon/random.h>
    23 
    24 namespace lemon {
    25   /// \brief Global random number generator instance
    26   ///
    27   /// A global mersenne twister random number generator instance
    28   Random rnd;
    29 }