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

DiploidGenome Class Reference

Genome with multiple sets of chromosomes -- UNDER DEVELOPMENT. More...

#include <genetics.h>

Inheritance diagram for DiploidGenome:

Genome Gentainer Genstruct List of all members.

Public Methods

virtual void init ()
virtual void addPrivateGenes (Gentainer &g, const StringMap &params)
virtual int length () const
virtual bool pointMutate (const MutationRate &k)
virtual void recombine (const Genstruct &a, const Genstruct &b)
virtual double equality (const Genstruct &other) const
virtual Genstructreplicate () const
virtual void copy (const Genstruct &other)
virtual void print (TextOStream &out) const

Protected Methods

virtual int calc_len () const

Detailed Description

Genome with multiple sets of chromosomes -- UNDER DEVELOPMENT.

Definition at line 611 of file genetics.h.


Member Function Documentation

virtual void addPrivateGenes Gentainer   g,
const StringMap &    params
[virtual]
 

Implementation for Genstruct.

Reimplemented from Genome.

virtual int calc_len   const [protected, virtual]
 

Actually calculates the true length of the genome (recursively).

Reimplemented from Gentainer.

virtual void copy const Genstruct   other [virtual]
 

Copies another structure to self (recursively).

The other structure must be structurally EXACTLY equivalent to self (for example, replicated previously). This is cool.

Reimplemented from Gentainer.

virtual double equality const Genstruct   other const [virtual]
 

Compares how genotypically similar the structure is to another.

The units of the distance are usually application-dependent. One might, for example, use same euclidean distance or Hamming distance measurement with all genes, but then some genes may really be irrelevant for some problem, and they may have to be weighted. Thus, implementing this method in a generic way may be rather difficult.

Returns:
The distance between the structures.

Reimplemented from Gentainer.

virtual void init   [virtual]
 

Implementation for Genstruct.

Reimplemented from Genome.

virtual int length   [virtual]
 

Calculates recursively the total number of genes within the genetic structure.

Reimplemented from Genstruct.

virtual bool pointMutate const MutationRate   k [virtual]
 

Mutates the structure.

Parameters:
r  Mutation rate coefficients.
Returns:
TRUE if an actual mutation (change on genotype) has occurred.

Reimplemented from Gentainer.

virtual void print TextOStream &    out const [virtual]
 

Implementation for Genstruct.

Reimplemented from Genome.

virtual void recombine const Genstruct   a,
const Genstruct   b
[virtual]
 

Makes this structure a recombination of given parent structures.

If no internal recombination actualizes within the structure, the parent 'a' must always be copied.

Reimplemented from Gentainer.

virtual Genstruct* replicate   const [virtual]
 

Clones a copy of self, RECURSIVELY.

It's funny how simple reproduction is nowadays.

Reimplemented from Gentainer.


The documentation for this class was generated from the following file:
Generated on Thu Feb 10 20:12:01 2005 for NeHeP by doxygen1.2.18