org.dishevelled.evolve.recombine
Class SexualRecombination<I>
java.lang.Object
org.dishevelled.evolve.recombine.SexualRecombination<I>
- Type Parameters:
I - individual type
- All Implemented Interfaces:
- Recombination<I>
public abstract class SexualRecombination<I>
- extends Object
- implements Recombination<I>
Abstract sexual recombination function implemention.
Subclasses need only to implement the abstract individual-wise method
I recombine(I individual0, I individual1).
- Version:
- $Revision: 1059 $ $Date: 2012-01-03 14:03:02 -0600 (Tue, 03 Jan 2012) $
- Author:
- Michael Heuer
|
Method Summary |
Collection<I> |
recombine(Collection<I> population)
Recombine the individuals in the specified population of individuals. |
protected abstract I |
recombine(I individual0,
I individual1)
Recombine the specified individuals sexually, returning a
new individual. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SexualRecombination
public SexualRecombination()
recombine
public final Collection<I> recombine(Collection<I> population)
- Recombine the individuals in the specified population of individuals.
- Specified by:
recombine in interface Recombination<I>
- Parameters:
population - population of individuals
- Returns:
- a collection of recombined individuals
recombine
protected abstract I recombine(I individual0,
I individual1)
- Recombine the specified individuals sexually, returning a
new individual.
- Parameters:
individual0 - individual to recombine sexuallyindividual1 - individual to recombine sexually
- Returns:
- a new individual recombined from the specified individuals
Copyright (c) 2005-2012 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).