pos_new_env: Returns the coordinates of a new optimum in the plane...

Description Usage Arguments Value

View source: R/generate_model.R

Description

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.

Usage

1
2
pos_new_env(pheno_wt_ref, fitness_wt_new_env, maxfitness, alpha = 1/2,
  Q = 2, theta)

Arguments

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 (pheno_opt).

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 pheno_wt_ref), the pheno_wt_ref and the optimum of the new environement.

Value

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.


YoannAnciaux/inferenceFitnessLandscape documentation built on Oct. 31, 2019, 1:19 a.m.