EvolvingObjects
|
The class eoBooleanInit can be used in the STL apply function to easily generate random booleans with a specified bias. More...
#include <eoUniformInit.h>
Public Member Functions | |
eoBooleanInit (float _bias=0.5, eoRng &_rng=rng) | |
void | operator() (bool &_b) |
The pure virtual function that needs to be implemented by the subclass. | |
Private Attributes | |
float | bias |
eoRng & | gen |
The class eoBooleanInit can be used in the STL apply function to easily generate random booleans with a specified bias.
for booleans
Definition at line 115 of file eoUniformInit.h.