GaussianFloat Mutation. More...
![Inheritance graph](classfarsa_1_1GaussianFloat__inherit__graph.png)
Public Member Functions | |
GaussianFloat () | |
Constructor. | |
virtual | ~GaussianFloat () |
Destructor. | |
virtual void | configure (ConfigurationParameters ¶ms, QString prefix) |
Configure the object using the ConfigurationParameters specified. | |
virtual void | mutate (Genotype *) |
Mutate the Genotype. | |
virtual void | save (ConfigurationParameters ¶ms, QString prefix) |
Save the actual status of parameters into the ConfigurationParameters object passed. | |
void | setVariance (double v) |
Sets the variance of the gaussian distribution. | |
double | variance () const |
Returns the variance of the gaussian distribution. | |
![]() | |
Mutation () | |
Constructor. | |
virtual | ~Mutation () |
Destructor. | |
double | finalMutationRate (int bit) |
Returns the final mutation rate for the specified bit of the genotype. | |
GeneticAlgo * | GA () |
Return the GeneticAlgo used. | |
const Genome * | genome () |
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. | |
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. | |
![]() | |
void | addObserver (RuntimeParameterObserver *obs) |
T | getRuntimeParameter (QString paramName) |
virtual ParameterSettableUI * | getUIManager () |
ParameterSettable () | |
virtual void | postConfigureInitialization () |
void | removeObserver (RuntimeParameterObserver *obs) |
void | setRuntimeParameter (QString paramName, T newvalue) |
QString | typeName () const |
![]() | |
void | addObserver (RuntimeParameterObserver *obs) |
T | 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 void | describe (QString type) |
Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups. | |
![]() | |
static void | describe (QString type) |
static QString | fullParameterDescriptionPath (QString type, QString param) |
static QString | fullSubgroupDescriptionPath (QString type, QString sub) |
![]() | |
static void | describe (QString type) |
static QString | fullParameterDescriptionPath (QString type, QString param) |
static QString | fullSubgroupDescriptionPath (QString type, QString sub) |
Additional Inherited Members | |
![]() | |
enum | Property |
![]() | |
AllowMultiple | |
Default | |
IsList | |
IsMandatory | |
![]() | |
static const double | Infinity |
static const int | MaxInteger |
static const int | MinInteger |
![]() | |
void | notifyChangesToParam (QString paramName) |
![]() | |
static Descriptor | addTypeDescription (QString type, QString shortHelp, QString longHelp=QString("")) |
static void | setGraphicalEditor (QString type) |
![]() | |
GeneticAlgo * | ga |
GeneticAlgo used. | |
const Genome * | genomev |
Genome where Genotypes lives. | |
Detailed Description
- Description
- Change the i-th float number with a new random value according to a Gaussian distribution centered over the current value of the gene
- Warnings
Definition at line 37 of file gaussianfloat.h.
Constructor & Destructor Documentation
GaussianFloat | ( | ) |
Constructor.
Definition at line 28 of file gaussianfloat.cpp.
|
virtual |
Destructor.
Definition at line 33 of file gaussianfloat.cpp.
Member Function Documentation
|
virtual |
Configure the object using the ConfigurationParameters specified.
- Parameters
-
params the object with configuration parameters prefix the group in which parameters are expected to be (this is terminated by a separator character). We expect to receive as prefix the group with mutation parameters
Reimplemented from Mutation.
Definition at line 54 of file gaussianfloat.cpp.
References Mutation::configure(), and ConfigurationParameters::getValue().
|
static |
Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups.
Definition at line 64 of file gaussianfloat.cpp.
References ParameterSettableWithConfigureFunction::addTypeDescription(), ParameterSettable::RealDescriptor::def(), Mutation::describe(), ParameterSettable::Descriptor::describeReal(), ParameterSettable::RealDescriptor::help(), and ParameterSettable::RealDescriptor::limits().
|
virtual |
Mutate the Genotype.
- Warning
- the Genotype should be a valid RealGenotype
Implements Mutation.
Definition at line 37 of file gaussianfloat.cpp.
References DoubleGenotype::at(), DoubleGenotype::geneToBitIndex(), globalRNG, DoubleGenotype::maxValue(), DoubleGenotype::minValue(), Mutation::mutationRate(), DoubleGenotype::numGenes(), and DoubleGenotype::set().
|
virtual |
Save the actual status of parameters into the ConfigurationParameters object passed.
- Parameters
-
params the configuration parameters object on which save actual parameters prefix the prefix to use to access the object configuration parameters.
Reimplemented from Mutation.
Definition at line 70 of file gaussianfloat.cpp.
References ConfigurationParameters::createParameter(), and Mutation::save().
|
inline |
Sets the variance of the gaussian distribution.
- Parameters
-
v the new variance
Definition at line 68 of file gaussianfloat.h.
|
inline |
Returns the variance of the gaussian distribution.
- Returns
- the variance of the gaussian distribution
Definition at line 77 of file gaussianfloat.h.
The documentation for this class was generated from the following files:
- ga/include/mutations/gaussianfloat.h
- ga/src/mutations/gaussianfloat.cpp