realea::SelectNAM Class Reference

Negative Assortative Mating parent mechanism. More...

#include <select.h>

Inherits realea::ISelect.

Collaboration diagram for realea::SelectNAM:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SelectNAM (unsigned nam)
virtual void select (PopulationRealPtr pop, unsigned *mom, unsigned *dad)

Detailed Description

Negative Assortative Mating parent mechanism.

It select the first one (mother) randomly, for the election of the father, it select randomly nam other individuals and choses the more diferent to the first one (using the Euclidean distance)

Definition at line 74 of file select.h.


Constructor & Destructor Documentation

SelectNAM::SelectNAM ( unsigned  nam  ) 

Constructor.

Parameters:
random Random number generator
nam number of individuals considered by the selection of the second individual

Definition at line 27 of file select.cc.


Member Function Documentation

void SelectNAM::select ( PopulationRealPtr  pop,
unsigned *  mom,
unsigned *  dad 
) [virtual]

Select two new parents from a population

Parameters:
pop population from select the individuals
mom mother of the crossover
dad father of the crossover

Implements realea::ISelect.

Definition at line 31 of file select.cc.


The documentation for this class was generated from the following files:

Generated on Sun May 9 12:44:37 2010 for MA-CMA-Chains by  doxygen 1.6.1