#include <GLMutatorShuffling.h>
Public Member Functions | |
TParameters (int min_genes_to_shuffle=-1, int max_genes_to_shuffle=-1, bool uniform=false) | |
TParameters (const TParameters *source) | |
virtual GLBaseParameters * | copy () const |
Public Attributes | |
int | t_min_genes_to_shuffle |
int | t_max_genes_to_shuffle |
Maximum number of genes it can shuffle (when < 0 -- all genes). | |
bool | t_uniform |
Definition at line 60 of file GLMutatorShuffling.h.
GLMutatorShuffling::TParameters::TParameters | ( | int | min_genes_to_shuffle = -1 , |
|
int | max_genes_to_shuffle = -1 , |
|||
bool | uniform = false | |||
) | [inline] |
Creates new exemplar of the GLMutatorShuffling::TParameters class.
min_genes_to_shuffle | mininum number of genes this mutator will shuffle. Should be <= max_genes_to_shuffle (if not -- will be corrected -- assigned the value of max_genes_to_shuffle). If 0 or 1 will be automatically corrected to 2. If -1 it will shuffle all the genes in the organism. | |
max_genes_to_shuffle | maximum number of genes this mutator can shuffle. When < 0 it can shuffle all the genes in the organism. When 0 or 1 this mutator does nothing. | |
uniform | when true the number of genes which this mutator can shuffle is uniformly distributed random number from 2 to max_genes_to_shuffle. When false -- it will have 0.5 probability to choose 2 genes, 0.25 -- 3 genes 0.125 -- 4 genes etc. |
Definition at line 77 of file GLMutatorShuffling.h.
GLMutatorShuffling::TParameters::TParameters | ( | const TParameters * | source | ) | [inline] |
copying constructor
source | source of the data to copy; |
Definition at line 102 of file GLMutatorShuffling.h.
virtual GLBaseParameters* GLMutatorShuffling::TParameters::copy | ( | ) | const [inline, virtual] |
Creates the copy of the parameters.
Implements GLBaseParameters.
Definition at line 113 of file GLMutatorShuffling.h.
Minimum number of genes the mutator will shuffle (when < 0 -- all genes).
Definition at line 118 of file GLMutatorShuffling.h.
when true the number of genes which this mutator can shuffle is uniformly distributed random number from 2 to max_genes_to_shuffle. When false -- it will have 0.5 probability to choose 2 genes, 0.25 -- 3 genes 0.125 -- 4 genes etc.
Definition at line 125 of file GLMutatorShuffling.h.