RandomFloat Mutation. More...

Inheritance diagram for RandomFloat:

Public Member Functions

 RandomFloat ()
 Constructor.
 
virtual ~RandomFloat ()
 Destructor.
 
virtual void mutate (Genotype *)
 Mutate the Genotype.
 
- Public Member Functions inherited from Mutation
 Mutation ()
 Constructor.
 
virtual ~Mutation ()
 Destructor.
 
virtual void configure (ConfigurationParameters &params, QString prefix)
 Configure the object using the ConfigurationParameters specified.
 
double finalMutationRate (int bit)
 Returns the final mutation rate for the specified bit of the genotype.
 
GeneticAlgoGA ()
 Return the GeneticAlgo used.
 
const Genomegenome ()
 Return the Genome.
 
double initialMutationRate (int bit)
 Returns the initial mutation rate for the specified bit of the genotype.
 
double mutationRate (int bit)
 Returns the current mutation rate for the specified bit of the genotype.
 
virtual void save (ConfigurationParameters &params, QString prefix)
 Save the actual status of parameters into the ConfigurationParameters object passed.
 
void setGA (GeneticAlgo *g)
 Set the GeneticAlgo used.
 
void setGenome (const Genome *g)
 Set the Genome where Genotypes lives.
 
void setMutationRate (double rate, int start=0, int length=-1)
 Set the mutation rate, i.e.
 
void setMutationRate (double initialRate, double finalRate, double variation, int start=0, int length=-1)
 Like the other setMutationRate function, but this allows setting the initial rate, the final rate and the variation.
 
double variationMutationRate (int bit)
 Returns the variation of the mutation rate for the specified bit of the genotype.
 
- Public Member Functions inherited from ParameterSettableWithConfigureFunction
void addObserver (RuntimeParameterObserver *obs)
 
getRuntimeParameter (QString paramName)
 
virtual ParameterSettableUIgetUIManager ()
 
 ParameterSettable ()
 
virtual void postConfigureInitialization ()
 
void removeObserver (RuntimeParameterObserver *obs)
 
void setRuntimeParameter (QString paramName, T newvalue)
 
QString typeName () const
 
- Public Member Functions inherited from ParameterSettable
void addObserver (RuntimeParameterObserver *obs)
 
getRuntimeParameter (QString paramName)
 
void removeObserver (RuntimeParameterObserver *obs)
 
void setRuntimeParameter (QString paramName, T newvalue)
 
QString typeName () const
 

Static Public Member Functions

static void describe (QString type)
 Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups.
 
- Static Public Member Functions inherited from Mutation
static void describe (QString type)
 Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups.
 
- Static Public Member Functions inherited from ParameterSettableWithConfigureFunction
static void describe (QString type)
 
static QString fullParameterDescriptionPath (QString type, QString param)
 
static QString fullSubgroupDescriptionPath (QString type, QString sub)
 
- Static Public Member Functions inherited from ParameterSettable
static void describe (QString type)
 
static QString fullParameterDescriptionPath (QString type, QString param)
 
static QString fullSubgroupDescriptionPath (QString type, QString sub)
 

Additional Inherited Members

- Public Types inherited from ParameterSettableWithConfigureFunction
enum  Property
 
- Public Attributes inherited from ParameterSettableWithConfigureFunction
 AllowMultiple
 
 Default
 
 IsList
 
 IsMandatory
 
- Static Public Attributes inherited from ParameterSettableWithConfigureFunction
static const double Infinity
 
static const int MaxInteger
 
static const int MinInteger
 
- Protected Member Functions inherited from ParameterSettableWithConfigureFunction
void notifyChangesToParam (QString paramName)
 
- Static Protected Member Functions inherited from ParameterSettableWithConfigureFunction
static Descriptor addTypeDescription (QString type, QString shortHelp, QString longHelp=QString(""))
 
static void setGraphicalEditor (QString type)
 
- Protected Attributes inherited from Mutation
GeneticAlgoga
 GeneticAlgo used.
 
const Genomegenomev
 Genome where Genotypes lives.
 

Detailed Description

RandomFloat Mutation.

Description
Change the i-th float number with a new random value within range specified with mutationRate probability.
Warnings

Definition at line 36 of file randomfloat.h.

Constructor & Destructor Documentation

Constructor.

Definition at line 27 of file randomfloat.cpp.

~RandomFloat ( )
virtual

Destructor.

Definition at line 31 of file randomfloat.cpp.

Member Function Documentation

void describe ( QString  type)
static

Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups.

Definition at line 49 of file randomfloat.cpp.

References ParameterSettableWithConfigureFunction::addTypeDescription(), and Mutation::describe().


The documentation for this class was generated from the following files: