EvolvingObjects
Random number generation

Random number generator adapted from (see comments below) More...

Classes

class  eoRndGenerator< T >
 By popular demand re-introducing a base class for a family of random number generators. More...
class  eoUniformGenerator< T >
 The class eoUniform can be used in the STL generate function to easily generate random floats and doubles. More...
class  eoBooleanGenerator
 The class eoBooleanGenerator can be used in the STL generate function to easily generate random booleans with a specified bias. More...
class  eoNormalGenerator< T >
 The class normal_generator can be used in the STL generate function to easily generate gaussian distributed floats and doubles. More...
class  eoNegExpGenerator< T >
 The class negexp_generator can be used in the STL generate function to easily generate negative exponential distributed floats and doubles. More...
class  eoRng
 Random Number Generator. More...
class  uniform_generator< T >
 The class uniform_generator can be used in the STL generate function to easily generate random floats and doubles either in [0, _max) if only 1 value (_max) is given (or none, as _max defaults to 1.0) or in [_min,_max) if 2 values are given (_min, _max) More...
class  boolean_generator
 The class boolean_generator can be used in the STL generate function to easily generate random booleans with a specified bias. More...
class  random_generator< T >
 The class random_generator can be used in the STL generate function to easily generate random ints either between [0, _max) if only one value (_max) is given to the ctor or in [_min,_max) if 2 values are given (_min, _max) More...
class  UF_random_generator< T >
 Another class random_generator that can be used in the STL random_shuffle function (see eoPop::shuffle): its operator() takes an unsigned argument m and must return an unsigned uniformly distributed in [0,m}. More...
class  normal_generator< T >
 The class normal_generator can be used in the STL generate function to easily generate gaussian distributed floats and doubles. More...
class  negexp_generator< T >
 The class negexp_generator can be used in the STL generate function to easily generate negative exponential distributed floats and doubles. More...

Detailed Description

Random number generator adapted from (see comments below)

The random number generator is modified into a class by Maarten Keijzer (mak@dhi.dk). Also added the Box-Muller transformation to generate normal deviates.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Contact: eodev-main@lists.sourceforge.net Old contact information: todos@geneura.ugr.es, http://geneura.ugr.es

 All Classes Namespaces Files Functions Variables Typedefs Friends