Description Usage Arguments Value Examples
Generate a new offspring from the genome of two parents.
1 2 | createOffspring(genome1, genome2, min_val, max_val, p_mut = 0.25,
w_mut = 0.2, p_cross = 0.1)
|
genome1 |
Vector containing the gene values for individual 1. |
genome2 |
Vector containing the gene values for individual 2. |
min_val |
A vector of the minimum acceptable values for each gene. |
max_val |
A vector of the maximum acceptable values for each gene. |
p_mut |
Probability of a gene mutating (default: 0.25). |
w_mut |
Maximum variation allowed through mutation (default: 0.25). |
p_cross |
Probability of crossover (default: 0.1). |
A vector containing the gene values of the new individual.
1 | #TODO
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.