Negative Assortative Mating parent mechanism. More...
#include <select.h>
Inherits realea::ISelect.
Public Member Functions | |
SelectNAM (unsigned nam) | |
virtual void | select (PopulationRealPtr pop, unsigned *mom, unsigned *dad) |
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.
SelectNAM::SelectNAM | ( | unsigned | nam | ) |
void SelectNAM::select | ( | PopulationRealPtr | pop, | |
unsigned * | mom, | |||
unsigned * | dad | |||
) | [virtual] |
Select two new parents from a population
pop | population from select the individuals | |
mom | mother of the crossover | |
dad | father of the crossover |
Implements realea::ISelect.