Evolution/Evolution/Selectors/RouletteWheelSelector.cs
/// <summary>
/// Selects from the individuals whose fitness has been previously scaled.
/// </summary>
/// <param name="scoredIndividuals">The input individuals.</param>
/// <returns>
/// Selected individuals
/// </returns>
Selects from the individuals whose fitness has been previously scaled.
Selects from the individuals whose fitness has been previously scaled .
protected override IList<Individual<G, double>> Select(IList<IndividualScore> scoredIndividuals)
        {
            SortIndividuals(scoredIndividuals);
            IList<Individual<G, double>> selection = new List<Individual<G, double>>();
            for (int i = 0; i < SelectionSize; i++)
            {
                selection.Add(SelectIndividual());
            }
            return selection;
        }
protected override IList < Individual < G , double > > Select ( IList < IndividualScore > scoredIndividuals ) { SortIndividuals ( scoredIndividuals ) ; IList < Individual < G , double > > selection = new List < Individual < G , double > > ( ) ; for ( int i = 0 ; i < SelectionSize ; i ++ ) { selection . Add ( SelectIndividual ( ) ) ; } return selection ; }
Selects from the individuals whose fitness has been previously scaled.
Selects from the individuals whose fitness has been previously scaled .
None
scoredIndividuals
IList<IndividualScore>
The input individuals.
The input individuals .