![]() |
ECF 1.7
|
FloatingPoint class - implements genotype as a vector of floating point values. More...
#include <FloatingPoint.h>
Public Member Functions | |
| bool | initialize (StateP state) |
| Initialize a genotype object (read parameters, perform sanity check, build data). | |
| void | registerParameters (StateP state) |
| Register genotype's parameters (called before Genotype::initialize). | |
| double | getLBound () |
| return lower bound of the defined interval | |
| double | getUBound () |
| return upper bound of the defined interval | |
| FloatingPoint * | copy () |
| Create an identical copy of the genotype object. | |
| std::vector< CrossoverOpP > | getCrossoverOp () |
| return usable crx operators | |
| std::vector< MutationOpP > | getMutationOp () |
| Create and return a vector of mutation operators. | |
| void | write (XMLNode &xFloatingPoint) |
| Write genotype data to XMLNode. | |
| void | read (XMLNode &xFloatingPoint) |
| Read genotype data from XMLNode. | |
| Public Member Functions inherited from RealValueGenotype | |
| double | getLBound () |
| return lower bound of the defined interval | |
| double | getUBound () |
| return upper bound of the defined interval | |
| virtual bool | update (void) |
| Update genotype after genetic material change via genetic operators. | |
| Public Member Functions inherited from Genotype | |
| bool | registerParameter (StateP state, std::string name, voidP value, enum ECF::type T, std::string description="") |
| Register a single parameter. | |
| voidP | getParameterValue (StateP state, std::string name) |
| Read single parameter value from Registry. | |
| bool | setParameterValue (StateP state, std::string name, voidP value) |
| Write single parameter value to Registry. | |
| bool | isParameterDefined (StateP state, std::string name) |
| Check if parameter is defined in the configuration. | |
| virtual uint | getGenomeSize () |
| std::string | getName () |
| Return genotype's name (each genotype is uniquely identified with its name). | |
| uint | getGenotypeId () |
| Return this genotype's index in individual structure. | |
| void | setGenotypeId (uint id) |
| Set genotype index in an individual. | |
| std::string | toString () |
| Output genotype to string. | |
Additional Inherited Members | |
| Public Attributes inherited from RealValueGenotype | |
| std::vector< double > | realValue |
| vector of floating point values | |
| Protected Attributes inherited from RealValueGenotype | |
| double | minValue_ |
| lower bound | |
| double | maxValue_ |
| upper bound | |
| uint | nDimension_ |
| dimensionality | |
| Protected Attributes inherited from Genotype | |
| std::string | name_ |
| genotype's name | |
| uint | genotypeId_ |
| this genotype's unique index in individual structure | |
FloatingPoint class - implements genotype as a vector of floating point values.
FloatingPoint genotype parameters are (inherited from RealValueGenoptype):
Definition at line 39 of file FloatingPoint.h.
|
inline |
Definition at line 43 of file FloatingPoint.h.
|
inlinevirtual |
Create an identical copy of the genotype object.
Implements Genotype.
Definition at line 58 of file FloatingPoint.h.
|
inlinevirtual |
return usable crx operators
Reimplemented from Genotype.
Definition at line 65 of file FloatingPoint.h.
|
inline |
return lower bound of the defined interval
Definition at line 51 of file FloatingPoint.h.
|
inlinevirtual |
Create and return a vector of mutation operators.
Reimplemented from Genotype.
Definition at line 86 of file FloatingPoint.h.
|
inline |
return upper bound of the defined interval
Definition at line 55 of file FloatingPoint.h.
|
virtual |
Initialize a genotype object (read parameters, perform sanity check, build data).
Implements Genotype.
Definition at line 20 of file FloatingPoint.cpp.
|
virtual |
Read genotype data from XMLNode.
Implements Genotype.
Definition at line 72 of file FloatingPoint.cpp.
|
virtual |
Register genotype's parameters (called before Genotype::initialize).
Reimplemented from Genotype.
Definition at line 9 of file FloatingPoint.cpp.
|
virtual |
Write genotype data to XMLNode.
Implements Genotype.
Definition at line 58 of file FloatingPoint.cpp.