|
uint | getNumBits () |
| Return number of bits used in a single dimension in real domain. More...
|
|
bool | initialize (StateP state) |
| Initialize a genotype object (read parameters, perform sanity check, build data) More...
|
|
void | registerParameters (StateP state) |
| Register genotype's parameters (called before Genotype::initialize) More...
|
|
bool | update (void) |
| Update genotype after genetic material change via genetic operators. More...
|
|
Binary * | copy () |
| Create an identical copy of the genotype object. More...
|
|
std::vector< CrossoverOpP > | getCrossoverOp () |
| Create and return a vector of crossover operators. More...
|
|
std::vector< MutationOpP > | getMutationOp () |
| Create and return a vector of mutation operators. More...
|
|
void | write (XMLNode &xBinary) |
| Write genotype data to XMLNode. More...
|
|
void | read (XMLNode &xBinary) |
| Read genotype data from XMLNode. More...
|
|
double | getLBound () |
| return lower bound of the defined interval More...
|
|
double | getUBound () |
| return upper bound of the defined interval More...
|
|
virtual bool | update (void) |
| Update genotype after genetic material change via genetic operators. More...
|
|
virtual bool | initialize (StateP state)=0 |
| Initialize a genotype object (read parameters, perform sanity check, build data) More...
|
|
virtual Genotype * | copy ()=0 |
| Create an identical copy of the genotype object. More...
|
|
virtual std::vector< CrossoverOpP > | getCrossoverOp () |
| Create and return a vector of crossover operators. More...
|
|
virtual std::vector< MutationOpP > | getMutationOp () |
| Create and return a vector of mutation operators. More...
|
|
virtual void | registerParameters (StateP) |
| Register genotype's parameters (called before Genotype::initialize) More...
|
|
bool | registerParameter (StateP state, std::string name, voidP value, enum ECF::type T, std::string description="") |
| Register a single parameter. More...
|
|
voidP | getParameterValue (StateP state, std::string name) |
| Read single parameter value from Registry. More...
|
|
bool | setParameterValue (StateP state, std::string name, voidP value) |
| Write single parameter value to Registry. More...
|
|
bool | isParameterDefined (StateP state, std::string name) |
| Check if parameter is defined in the configuration. More...
|
|
virtual void | read (XMLNode &)=0 |
| Read genotype data from XMLNode. More...
|
|
virtual void | write (XMLNode &)=0 |
| Write genotype data to XMLNode. More...
|
|
virtual uint | getGenomeSize () |
|
std::string | getName () |
| Return genotype's name (each genotype is uniquely identified with its name). More...
|
|
uint | getGenotypeId () |
| Return this genotype's index in individual structure. More...
|
|
void | setGenotypeId (uint id) |
| Set genotype index in an individual. More...
|
|
std::string | toString () |
| Output genotype to string. More...
|
|
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.