20 #include "mutations/randomfloat.h"
21 #include "core/genotype.h"
22 #include "randomgenerator.h"
23 #include "genotypes/doublegenotype.h"
37 Q_ASSERT_X( rgen != 0,
38 "RandomFloat::mutate",
39 "In order to use RandomFloat mutation the Genotypes must be a subclass of DoubleGenotype" );
42 for(
unsigned int i=0; i<rgen->
numGenes(); i++ ) {
51 addTypeDescription( type,
"Mutation operator",
"Replace a real value with a random one with the probability specified by mutation_rate parameter" );