Modified eoInit so that it would use the eoRndGenerator base class.
To be able to use the primitive std::generate function, added a set of wrappers in eoSTLFunctor.h that have the copy semantics most STL functions expect (namely pass-by-value rather then pass-by-reference). Updated test/Makefile.am to also test t-eoRandom
This commit is contained in:
parent
e28211188a
commit
a79075f673
11 changed files with 240 additions and 83 deletions
|
|
@ -26,8 +26,8 @@
|
|||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifndef eoRND_GENERATORS_H
|
||||
#define eoRND_GENERATORS_H
|
||||
#ifndef eoRndGenerators_h
|
||||
#define eoRndGenerators_h
|
||||
|
||||
#include "eoRNG.h"
|
||||
#include <eoFunctor.h>
|
||||
|
|
@ -37,9 +37,7 @@
|
|||
By popular demand re-introducing a base class for a family of
|
||||
random number generators. Derived members of this class are useful
|
||||
to initialize fixed/variable length genotypes that have an 'atomic' type
|
||||
in an indepent way (thus without employing any knowledge abou the problem domain).
|
||||
|
||||
The only change from previous EO's us the use of the suffix EO. This to
|
||||
in an indepent way (thus without employing any knowledge about the problem domain).
|
||||
|
||||
See derived classes eoUniformGenerator, eoBooleanGenerator, eoNormalGenerator and eoNegExpGenerator
|
||||
*/
|
||||
|
|
|
|||
Reference in a new issue