#include <ga/eoBitOp.h>
Inheritance diagram for eoNPtsBitXover< Chrom >:

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 |
Definition at line 319 of file eoBitOp.h.
| bool eoNPtsBitXover< Chrom >::operator() | ( | Chrom & | chrom1, | |
| Chrom & | chrom2 | |||
| ) | [inline, virtual] |
n-point crossover for binary chromosomes.
| 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.
1.4.7