public class RuleMutationPipeline extends BreedingPipeline
Typical Number of Individuals Produced Per produce(...) call
1
Number of Sources
1
Default Base
rule.mutate (not that it matters)
Modifier and Type | Field and Description |
---|---|
static int |
INDS_PRODUCED |
static int |
NUM_SOURCES |
static java.lang.String |
P_MUTATION |
DYNAMIC_SOURCES, likelihood, mybase, P_LIKELIHOOD, P_NUMSOURCES, P_SOURCE, sources, V_SAME
NO_PROBABILITY, P_PROB, probability
Constructor and Description |
---|
RuleMutationPipeline() |
Modifier and Type | Method and Description |
---|---|
Parameter |
defaultBase()
Returns the default base for this prototype.
|
int |
numSources()
Returns 1
|
int |
produce(int min,
int max,
int start,
int subpopulation,
Individual[] inds,
EvolutionState state,
int thread)
Produces n individuals from the given subpopulation
and puts them into inds[start...start+n-1],
where n = Min(Max(q,min),max), where q is the "typical" number of
individuals the BreedingSource produces in one shot, and returns
n.
|
int |
typicalIndsProduced()
Returns 1
|
clone, finishProducing, individualReplaced, maxChildProduction, minChildProduction, preparePipeline, prepareToProduce, produces, reproduce, setup, sourcesAreProperForm
getProbability, pickRandom, setProbability, setupProbabilities
public static final java.lang.String P_MUTATION
public static final int INDS_PRODUCED
public static final int NUM_SOURCES
public Parameter defaultBase()
Prototype
public int numSources()
numSources
in class BreedingPipeline
public int typicalIndsProduced()
typicalIndsProduced
in class BreedingPipeline
public int produce(int min, int max, int start, int subpopulation, Individual[] inds, EvolutionState state, int thread)
BreedingSource
produce
in class BreedingSource