GLMutatorShuffling::TParameters Struct Reference

#include <GLMutatorShuffling.h>

Inheritance diagram for GLMutatorShuffling::TParameters:

GLBaseParameters

List of all members.

Public Member Functions

 TParameters (int min_genes_to_shuffle=-1, int max_genes_to_shuffle=-1, bool uniform=false)
 TParameters (const TParameters *source)
virtual GLBaseParameterscopy () 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


Detailed Description

Internal class of the additional (to base mutator's) parameters necessary to initialise this class.

Definition at line 60 of file GLMutatorShuffling.h.


Constructor & Destructor Documentation

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.

Parameters:
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

Parameters:
source source of the data to copy;

Definition at line 102 of file GLMutatorShuffling.h.


Member Function Documentation

virtual GLBaseParameters* GLMutatorShuffling::TParameters::copy (  )  const [inline, virtual]

Creates the copy of the parameters.

Returns:
pointer to identical copy of the current class exemplar.

Implements GLBaseParameters.

Definition at line 113 of file GLMutatorShuffling.h.


Member Data Documentation

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.


The documentation for this struct was generated from the following file:

Generated on Sat Jun 13 13:58:11 2009 for GenLib by  doxygen 1.5.9