Description Usage Arguments Value
View source: R/generate_model.R
Returns the coordinates of a new optimum in the plane corresponding to the
first two dimensions of pheno_wt_ref
. The position is computed using the
inverse of the fitness function of an isotrope FGM on the fitness_wt_new_env
.
1 2 | pos_new_env(pheno_wt_ref, fitness_wt_new_env, maxfitness, alpha = 1/2,
Q = 2, theta)
|
pheno_wt_ref |
A vector of real number. Phenotype of the wild type. |
fitness_wt_new_env |
A real number. Fitness of the wild type in the new env. |
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. |
theta |
A angle in radian between 0 and 2 * pi. Angle between the optimum
of the environment of reference (first dimension of |
A pair of coordinates for the position of the optimum of the new environment
corresponding to the two first dimensions of pheno_wt_ref
. If pheno_wt_ref
has a single dimension, theta
is ignored and the position of the
optimum is given in this single dimension.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.