|
| uint | getNumBits () |
| | Return number of bits used in a single dimension in real domain.
|
| 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).
|
| bool | update (void) |
| | Update genotype after genetic material change via genetic operators.
|
| Binary * | copy () |
| | Create an identical copy of the genotype object.
|
| std::vector< CrossoverOpP > | getCrossoverOp () |
| | Create and return a vector of crossover operators.
|
| std::vector< MutationOpP > | getMutationOp () |
| | Create and return a vector of mutation operators.
|
| void | write (XMLNode &xBinary) |
| | Write genotype data to XMLNode.
|
| void | read (XMLNode &xBinary) |
| | Read genotype data from XMLNode.
|
| double | getLBound () |
| | return lower bound of the defined interval
|
| double | getUBound () |
| | return upper bound of the defined interval
|
| 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.
|
Binary class - implements genotype as a vector of binary coded real values with variable interval and precision.
Binary genotype parameters are (the first 3 are inherited from RealValueGenoptype):
- lbound: lower bound of represented real value
- ubound: upper bound of represented real value
- dimension: number of distinct real values, each coded with previous 3 parameters
- precision: desired number of digits (after the decimal point) to be represented
- rounding: whether the represented real value is rounded to 'precision' digits (false by default)
Definition at line 38 of file Binary.h.