EvolvingObjects
eoUBitXover< Chrom > Class Template Reference

eoUBitXover --> classic Uniform crossover More...

#include <ga/eoBitOp.h>

Inheritance diagram for eoUBitXover< Chrom >:
eoQuadOp< Chrom > eoOp< Chrom > eoBF< Chrom &, Chrom &, bool > eoFunctorBase binary_function

List of all members.

Public Member Functions

 eoUBitXover (const float &_preference=0.5)
 (Default) Constructor.
virtual std::string className () const
 The class name.
bool operator() (Chrom &chrom1, Chrom &chrom2)
 Uniform crossover for binary chromosomes.

Private Attributes

float preference

Detailed Description

template<class Chrom>
class eoUBitXover< Chrom >

eoUBitXover --> classic Uniform crossover

Definition at line 329 of file eoBitOp.h.


Member Function Documentation

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

Uniform crossover for binary chromosomes.

Parameters:
chrom1The first chromosome.
chrom2The first chromosome. std::runtime_error if sizes don't match

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

Definition at line 347 of file eoBitOp.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends