22#include "boost/smart_ptr.hpp"
29 const double probability =
30 args->getArg<
double>(
"gene-mutation-probability", 0.5);
32 for(
size_t i = 0; i < ind->genes_m.size(); i++) {
33 double rval =
static_cast<double>(rand() / (RAND_MAX + 1.0));
34 if(rval < probability) {
boost::shared_ptr< CmdArguments > CmdArguments_t
void mutate(boost::shared_ptr< T > ind, CmdArguments_t args)