eoNPtsBitXover< Chrom > Class Template Reference
[Bitstring]

eoNPtsBitXover --> n-point crossover More...

#include <ga/eoBitOp.h>

Inheritance diagram for eoNPtsBitXover< Chrom >:

eoQuadOp< Chrom > eoOp< Chrom > eoBF< Chrom &, Chrom &, bool > eoFunctorBase List of all members.

Public Member Functions

 eoNPtsBitXover (const unsigned &_num_points=2)
 (Default) Constructor.
virtual std::string className () const
 The class name.
bool operator() (Chrom &chrom1, Chrom &chrom2)
 n-point crossover for binary chromosomes.

Private Attributes

unsigned num_points

Detailed Description

template<class Chrom>
class eoNPtsBitXover< Chrom >

eoNPtsBitXover --> n-point crossover

Definition at line 319 of file eoBitOp.h.


Member Function Documentation

template<class Chrom>
bool eoNPtsBitXover< Chrom >::operator() ( Chrom chrom1,
Chrom chrom2 
) [inline, virtual]

n-point crossover for binary chromosomes.

Parameters:
chrom1 The first chromosome.
chrom2 The first chromosome.

Implements eoBF< Chrom &, Chrom &, bool >.

Definition at line 337 of file eoBitOp.h.

References eoNPtsBitXover< Chrom >::num_points, eoRng::random(), and eo::rng.


The documentation for this class was generated from the following file:
Generated on Thu Apr 19 11:02:32 2007 for EO by  doxygen 1.4.7