FloatingPoint class - implements genotype as a vector of floating point values. More...
#include <FloatingPoint.h>
Public Member Functions | |
| bool | initialize (StateP state) |
| void | registerParameters (StateP state) |
| double | getLBound () |
| double | getUBound () |
| FloatingPoint * | copy () |
| std::vector< CrossoverOpP > | getCrossoverOp () |
| std::vector< MutationOpP > | getMutationOp () |
| void | write (XMLNode &xFloatingPoint) |
| void | read (XMLNode &xFloatingPoint) |
Public Attributes | |
| std::vector< double > | realValue |
| vector of floating point values | |
Protected Attributes | |
| double | minValue_ |
| lower bound | |
| double | maxValue_ |
| upper bound | |
| uint | nDimension_ |
| dimensionality | |
FloatingPoint class - implements genotype as a vector of floating point values.
FloatingPoint genotype parameters are:
Definition at line 20 of file FloatingPoint.h.
| FloatingPoint* FloatingPoint::FloatingPoint::copy | ( | ) | [inline, virtual] |
Create an identical copy of the genotype object
Implements Genotype.
Definition at line 44 of file FloatingPoint.h.
| std::vector<CrossoverOpP> FloatingPoint::FloatingPoint::getCrossoverOp | ( | ) | [inline, virtual] |
Create and return a vector of crossover operators
Reimplemented from Genotype.
Definition at line 50 of file FloatingPoint.h.
| std::vector<MutationOpP> FloatingPoint::FloatingPoint::getMutationOp | ( | ) | [inline, virtual] |
Create and return a vector of mutation operators
Reimplemented from Genotype.
Definition at line 58 of file FloatingPoint.h.
| bool FloatingPoint::FloatingPoint::initialize | ( | StateP | state | ) | [virtual] |
Initialize a genotype object (read parameters, perform sanity check, build data)
Implements Genotype.
Definition at line 17 of file FloatingPoint.cpp.
| void FloatingPoint::FloatingPoint::read | ( | XMLNode & | ) | [virtual] |
Read genotype data from XMLNode
Implements Genotype.
Definition at line 69 of file FloatingPoint.cpp.
| void FloatingPoint::FloatingPoint::registerParameters | ( | StateP | ) | [virtual] |
Register genotype's parameters (called before Genotype::initialize)
Reimplemented from Genotype.
Definition at line 9 of file FloatingPoint.cpp.
| void FloatingPoint::FloatingPoint::write | ( | XMLNode & | ) | [virtual] |
Write genotype data to XMLNode
Implements Genotype.
Definition at line 55 of file FloatingPoint.cpp.
1.7.1