Description Usage Arguments Value Examples
Generates a fitness landscape using the stickbreaking model, as characterized in Nagel et al. (2012) <doi:10.1534.genetics.111.132134>.
1 | generate_sb(n_gene, n_allele, wt_fit, mut_fit, max_fit)
|
n_gene |
number of genes |
n_allele |
number of alleles per gene |
wt_fit |
wild-type genotype fitness |
mut_fit |
if of class |
max_fit |
maximum fitness value attainable in this landscape |
fitness landscape stored in FitLand
class object
1 2 3 4 5 6 7 8 9 10 11 12 | n_gene <- 4
n_allele <- 2
wt_fit <- 1
max_fit <- 2
landscape <- generate_sb(n_gene = n_gene,
n_allele = n_allele,
wt_fit = wt_fit,
mut_fit = function() {stats::runif(1)},
max_fit = max_fit)
print(landscape)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.