Description Usage Arguments Value Examples
Generates a fitness landscape using the additive model, as characterized in Nagel et al. (2012) <doi:10.1534.genetics.111.132134>.
1 | generate_add(n_gene, n_allele, wt_fit = 0, mut_fit)
|
n_gene |
number of genes |
n_allele |
number of alleles per gene |
wt_fit |
wild-type genotype fitness |
mut_fit |
if of class |
fitness landscape stored in FitLand
class object
1 2 3 4 5 6 7 | num_genes <- 4
num_alelles <- 3
landscape <- generate_add(num_genes,
num_alleles,
mut_fit = function() {stats::rnorm(1)})
print(landscape)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.