Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Geno_ftest Class Reference

A sample class for genetic operations on DNA-like genotypes. More...

Inheritance diagram for Geno_ftest:

Geno_fx List of all members.

Public Methods

 Geno_ftest ()
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 ()

Public Attributes

double prob

Detailed Description

A sample class for genetic operations on DNA-like genotypes.

Author:
Maciej Komosinski
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:
geno_ftest_example


Generated on Sun Sep 15 00:58:40 2002 for Framsticks GenoFX by doxygen1.2.17