Main Page Class Hierarchy Compound List File List Compound Members File Members
Geno_ftest Class ReferenceA sample class for genetic operations on DNA-like genotypes.
Inheritance diagram for Geno_ftest:
List of all members.
int ||checkValidity (const char *)|
| ||The only letters allowed are A,T,G,C.|
int ||validate (char *&)|
| ||Remove all invalid letters from the genotype.|
int ||mutate (char *&g, float &chg)|
| ||Very simple mutation.|
int ||crossOver (char *&g1, char *&g2, float &chg1, float &chg2)|
| ||A simple one-point crossover.|
unsigned long ||style (const char *g, int pos)|
| ||Applying some colors and font styles...|
char * ||getSimplest ()|
A sample class for genetic operations on DNA-like genotypes.
This is a very simple class to illustrate basic genetic operations. To compile this code, you may need some GDK files. For a more sophisticated example of Geno_f4 derived from Geno_fx, refer to the available source on developmental encoding and f4 genotype format.
- See also:
Generated on Sun Sep 15 00:58:40 2002 for Framsticks GenoFX by