Binary class - implements genotype as a binary coded real values. More...
#include <Binary.h>
Public Member Functions | |
| uint | getNumBits () |
| bool | initialize (StateP state) |
| void | registerParameters (StateP state) |
| bool | update (void) |
| Binary * | copy () |
| std::vector< CrossoverOpP > | getCrossoverOp () |
| std::vector< MutationOpP > | getMutationOp () |
| void | write (XMLNode &xBinary) |
| void | read (XMLNode &xBinary) |
Public Attributes | |
| std::vector< long int > | decValue |
| integer values of bit representation | |
| std::vector< double > | realValue |
| values in real domain | |
| std::vector< v_bool > | variables |
| vector of bit vectors | |
Protected Types | |
| typedef std::vector< bool > | v_bool |
Protected Member Functions | |
| double | logbase (double a, double base) |
| double | round (double, int) |
Protected Attributes | |
| double | minValue_ |
| lower bound in real domain | |
| double | maxValue_ |
| upper bound in real domain | |
| uint | nDecimal_ |
| number of digits after the decimal point | |
| uint | nDimension_ |
| dimensionality | |
| uint | nBits_ |
| number of bits for a single dimension | |
| long | potention_ |
| bool | bRounding_ |
| use rounding with 'precision' digits on real values in the chromosome | |
| v_bool | vBool_ |
Friends | |
| class | BinaryMutSimple |
Binary class - implements genotype as a binary coded real values.
Binary genotype parameters are:
Definition at line 23 of file Binary.h.
| Binary* Binary::Binary::copy | ( | ) | [inline, virtual] |
| std::vector<CrossoverOpP> Binary::Binary::getCrossoverOp | ( | ) | [inline, virtual] |
| std::vector<MutationOpP> Binary::Binary::getMutationOp | ( | ) | [inline, virtual] |
| uint Binary::Binary::getNumBits | ( | ) | [inline] |
| bool Binary::Binary::initialize | ( | StateP | state | ) | [virtual] |
Initialize a genotype object (read parameters, perform sanity check, build data)
Implements Genotype.
Definition at line 33 of file Binary.cpp.
| void Binary::Binary::read | ( | XMLNode & | ) | [virtual] |
| void Binary::Binary::registerParameters | ( | StateP | ) | [virtual] |
Register genotype's parameters (called before Genotype::initialize)
Reimplemented from Genotype.
Definition at line 23 of file Binary.cpp.
| bool Binary::Binary::update | ( | void | ) |
Update genotype after change via genetic operators.
Definition at line 103 of file Binary.cpp.
| void Binary::Binary::write | ( | XMLNode & | ) | [virtual] |
1.7.1