T - The type of evolvable entity that this operator is used with.public class IdentityOperator<T> extends Object implements EvolutionaryOperator<T>
SplitEvolution so that a
proportion of the selected candidates can be copied unaltered into the next
generation while the remainder are evolved.| Constructor and Description |
|---|
IdentityOperator() |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
apply(List<T> selectedCandidates,
Random rng)
Returns the selected candidates unaltered.
|
public List<T> apply(List<T> selectedCandidates, Random rng)
apply in interface EvolutionaryOperator<T>selectedCandidates - The candidates to "evolve" (or do
nothing to in this case).rng - A source of randomness (not used).