|
Rosetta
|
Selects only the best scored individuals. More...
#include <RouletteSelector.hh>

Public Member Functions | |
| utility::vector1< Individual > | apply (Population &population, core::Size size, bool remove) const override |
| Returns the indices of the size selected individuals from population with a roulette wheel selection. More... | |
| std::string const & | name () const override |
| Return the name of this selector. More... | |
| void | consider_positive (bool consider_positive) |
| Switch whether positive fitness should be considered or not. If they are considered, this changes the proportions of all other fitness a bit! More... | |
Private Attributes | |
| std::string | name_ = "RouletteSelector" |
| bool | consider_positive_ = true |
| Switch whether positive fitness should be considered or not. If they are considered, this changes the proportions of all other fitness a bit! More... | |
Selects only the best scored individuals.
|
overridevirtual |
Returns the indices of the size selected individuals from population with a roulette wheel selection.
Implements protocols::ligand_evolution::Selector.
References consider_positive_, protocols::ligand_evolution::Population::individual(), protocols::ligand_evolution::Population::individuals(), name(), protocols::ligand_evolution::Population::remove_individuals(), protocols::hybridization::score, protocols::ligand_evolution::Individual::score(), protocols::ligand_evolution::Population::size(), protocols::ligand_evolution::Population::sort(), and protocols::TR().
| void protocols::ligand_evolution::RouletteSelector::consider_positive | ( | bool | consider_positive | ) |
Switch whether positive fitness should be considered or not. If they are considered, this changes the proportions of all other fitness a bit!
References consider_positive_.
|
overridevirtual |
Return the name of this selector.
Implements protocols::ligand_evolution::Selector.
References name_.
Referenced by apply().
|
private |
Switch whether positive fitness should be considered or not. If they are considered, this changes the proportions of all other fitness a bit!
Referenced by apply(), and consider_positive().
|
private |
Referenced by name().