|
EvolvingObjects
|
eoNPtsBitXover --> n-point crossover More...
#include <ga/eoBitOp.h>
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 |
eoNPtsBitXover --> n-point crossover
| eoNPtsBitXover< Chrom >::eoNPtsBitXover | ( | const unsigned & | _num_points = 2 | ) | [inline] |
(Default) Constructor.
Definition at line 378 of file eoBitOp.h.
References eoNPtsBitXover< Chrom >::num_points.
| 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 392 of file eoBitOp.h.
References eoNPtsBitXover< Chrom >::num_points.
unsigned eoNPtsBitXover< Chrom >::num_points [private] |
Definition at line 425 of file eoBitOp.h.
Referenced by eoNPtsBitXover< Chrom >::eoNPtsBitXover(), and eoNPtsBitXover< Chrom >::operator()().