Rosetta
Public Member Functions | Private Attributes | List of all members
protocols::ligand_evolution::RouletteSelector Class Reference

Selects only the best scored individuals. More...

#include <RouletteSelector.hh>

Inheritance diagram for protocols::ligand_evolution::RouletteSelector:
Inheritance graph
[legend]

Public Member Functions

utility::vector1< Individualapply (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...
 

Detailed Description

Selects only the best scored individuals.

Member Function Documentation

◆ apply()

utility::vector1< Individual > protocols::ligand_evolution::RouletteSelector::apply ( Population population,
core::Size  size,
bool  remove 
) const
overridevirtual

◆ consider_positive()

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_.

◆ name()

std::string const & protocols::ligand_evolution::RouletteSelector::name ( ) const
overridevirtual

Return the name of this selector.

Implements protocols::ligand_evolution::Selector.

References name_.

Referenced by apply().

Member Data Documentation

◆ consider_positive_

bool protocols::ligand_evolution::RouletteSelector::consider_positive_ = true
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().

◆ name_

std::string protocols::ligand_evolution::RouletteSelector::name_ = "RouletteSelector"
private

Referenced by name().


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