Empirical
Classes | Namespaces | Functions
World_select.h File Reference

Functions for popular selection methods applied to worlds. More...

#include <map>
#include <functional>
#include "../base/array.h"
#include "../base/assert.h"
#include "../base/vector.h"
#include "../base/macros.h"
#include "../tools/IndexMap.h"
#include "../tools/Random.h"
#include "../tools/vector_utils.h"

Go to the source code of this file.

Classes

class  emp::World< ORG >
 Setup a World with a population of organisms that can evolve or deal with ecological effects. More...
 

Namespaces

 emp
 If we are in emscripten, make sure to include the header.
 

Functions

template<typename ORG >
void emp::EliteSelect (World< ORG > &world, size_t e_count=1, size_t copy_count=1)
 
template<typename ORG >
void emp::RandomSelect (World< ORG > &world, size_t r_count=1, size_t copy_count=1)
 
template<typename ORG >
void emp::TournamentSelect (World< ORG > &world, size_t t_size, size_t tourny_count=1)
 
template<typename ORG >
void emp::RouletteSelect (World< ORG > &world, size_t count=1)
 
template<typename ORG >
void emp::LexicaseSelect (World< ORG > &world, const emp::vector< std::function< double(ORG &)> > &fit_funs, size_t repro_count=1, size_t max_funs=0)
 
template<typename ORG >
void emp::EcoSelect (World< ORG > &world, const emp::vector< std::function< double(ORG &)> > &extra_funs, const emp::vector< double > &pool_sizes, size_t t_size, size_t tourny_count=1)
 
template<typename ORG >
void emp::EcoSelect (World< ORG > &world, const emp::vector< typename World< ORG >::fun_calc_fitness_t > &extra_funs, double pool_sizes, size_t t_size, size_t tourny_count=1)
 EcoSelect can be provided a single value if all pool sizes are identical. More...
 

Detailed Description

Functions for popular selection methods applied to worlds.

Note
This file is part of Empirical, https://github.com/devosoft/Empirical
Date
2017-2018