org.dishevelled.evolve
Interface Selection<I>

Type Parameters:
I - individual type
All Known Implementing Classes:
ElitistSelection, FitnessProportionalSelection, NullSelection, RandomSelection, RankBasedSelection

public interface Selection<I>

A selection function.

Version:
$Revision: 1059 $ $Date: 2012-01-03 14:03:02 -0600 (Tue, 03 Jan 2012) $
Author:
Michael Heuer

Method Summary
 Collection<I> select(Collection<I> population, WeightedMap<I> scores)
          Select individuals from the specified population of individuals based on the specified fitness scores.
 

Method Detail

select

Collection<I> select(Collection<I> population,
                     WeightedMap<I> scores)
Select individuals from the specified population of individuals based on the specified fitness scores.

Parameters:
population - population of individuals
scores - fitness scores
Returns:
a collection of individuals selected from the specified population of individuals
Throws:
IllegalStateException - if the total weight of the scores is zero


Copyright (c) 2005-2012 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).