Description Usage Arguments Value
View source: R/generate_model.R
Function generating the fitness of the mutants' genotypes in genotype_table
The mutants are produced by combining nb_mut
selected mutations generated
from the wt with fitness fitness_wt
. Fitnesses are computed using an
isotropic FGM with the parameter n
, lambda
, maxfitness
,
alpha
, Q
, m
. See generate_selected_mutation
for more information on the selected mutations and fitness_mutant_genotype
for the fitness of the genotypes.
1 2 | model_fgmsmut(nb_mut, genotype_table, fitness_wt, n, lambda, maxfitness,
alpha, Q, m, fun_args)
|
nb_mut |
A natural number. Number of mutations in the output. |
genotype_table |
A matrix of 0 and 1. The rows correspond to different genotypes and the columns to the mutations that are considered for these genotypes. A genotype (at a certain row) has a given mutation when there is a 1 in the corresponding column. A row with only zeros correspond to the wild type. |
fitness_wt |
A real number. Fitness of the wild type in the new environment. |
n |
A natural number. Number of dimensions of the phenotypic space in which the random mutations are drawn. |
lambda |
A positive real number. Variance of the effect of mutations on phenotype per phenotypic dimension. |
maxfitness |
A real number. The maximum fitness in the landscape. The
fitness at the phenotypic optimum ( |
alpha |
A strictly positive real number. Scaling factor for the fitness function. Default=1/2 in the cannonical FGM with a quadratic fitness function. |
Q |
A strictly positive number. "Shape" of the fitness function. Default=2 in the cannonical FGM with a quadratic fitness function. |
m |
A natural number inferior to |
fun_args |
List with a single element called nb_mut_rand. For more information
see |
A vector of real numbers. Each element is the fitness of the corresponding
selected mutants in genotype_table
. They are in the same order as the rows of
genotype_table
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.