dignea  1.0.0
Diverse Instance Generator with Novelty Search and Evolutionary Algorithms
BinaryTournamentSelection< S > Class Template Reference

Binary Tournament Selection Operator. More...

#include <BinaryTournamentSelection.h>

Inheritance diagram for BinaryTournamentSelection< S >:
Selection< S >

Public Member Functions

void select (const vector< S > &, int &) override
 Performs the Binary Tournament Selection operator over the population and sets the index of the parent inside the population to the parent parameter. More...
 
select (const vector< S > &population) override
 Performs the Binary Tournament Selection operator over the population and returns the selected parent. More...
 
std::string getName () const override
 

Detailed Description

template<class S>
class BinaryTournamentSelection< S >

Binary Tournament Selection Operator.

Template Parameters
S

Member Function Documentation

◆ select() [1/2]

template<class S >
void BinaryTournamentSelection< S >::select ( const vector< S > &  population,
int &  parent 
)
overridevirtual

Performs the Binary Tournament Selection operator over the population and sets the index of the parent inside the population to the parent parameter.

Template Parameters
S
Parameters
population
parent

Implements Selection< S >.

◆ select() [2/2]

template<class S >
S BinaryTournamentSelection< S >::select ( const vector< S > &  population)
overridevirtual

Performs the Binary Tournament Selection operator over the population and returns the selected parent.

Template Parameters
S
Parameters
population
Returns
S

Implements Selection< S >.


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