|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.kumpe.hadooptimizer.impl.DuplicatingRecombiner<I>
I
- the individual's typepublic final class DuplicatingRecombiner<I>
A Recombiner
which creates the given number of offspring by randomly
selecting and duplicating a parents.
It does not copy the parents! It only "duplicate" the reference.
Constructor Summary | |
---|---|
DuplicatingRecombiner(int offspring)
Creates a new DuplicatingRecombiner which generated the given
number of offspring. |
Method Summary | |
---|---|
int |
getOffspring()
|
Collection<I> |
recombine(Collection<EvaluationResult<I>> parentResults)
Recombines the children from the parents in the given evaluationResults . |
void |
setRandomGenerator(org.apache.commons.math.random.RandomGenerator randomGenerator)
Injects a RandomGenerator instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DuplicatingRecombiner(int offspring)
DuplicatingRecombiner
which generated the given
number of offspring.
offspring
- the number of offspring to create in
recombination
Method Detail |
---|
public void setRandomGenerator(org.apache.commons.math.random.RandomGenerator randomGenerator)
NeedsRandomGenerator
RandomGenerator
instance.
setRandomGenerator
in interface NeedsRandomGenerator
randomGenerator
- the new RandomGenerator
instancepublic int getOffspring()
public Collection<I> recombine(Collection<EvaluationResult<I>> parentResults)
Recombiner
evaluationResults
.
recombine
in interface Recombiner<I>
Recombiner
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |