ftop_fgm_iso: Generates the phenotypic coordinates, in a 'n'-dimension(s)...

Description Usage Arguments Value Examples

View source: R/ftop_fgm_iso.R

Description

Generates the phenotypic coordinates, in a n-dimension(s) phenotypic space, corresponding to a given fitness using Fisher's Geometric Model (FGM, Fisher (1930)). Use the inverse of the fitness function of an isotrope FGM (with parameters n, maxfitness, alpha, Q) to compute the euclidian distance to the phenotypic optimum (pheno_opt -at the origin by default- at which the fitness = maxfitness). This distance is reported on the first coordinate and all the other n-1 coordinates are equal to the coordinates of the phenotypic optimum. See also ptof_fgm_iso for inverse function.

Usage

1
2
ftop_fgm_iso(fitness, n, maxfitness, alpha = 1/2, Q = 2,
  pheno_opt = numeric(n))

Arguments

fitness

A real number. The fitness of the phenotype. Must be lower or equal to maxfitness.

n

A natural number. Number of dimensions of the phenotypic space.

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.

pheno_opt

A vector of coordinates for the position of the phenotypic optimum at which the fitness is equal to maxfitness. Its length must be equal to n. Default = numeric(n).

Value

A vector of n coordinates in the phenotypic space.

Examples

1
2
ftop_fgm_iso(fitness = 0, n = 3, maxfitness = 1)
ftop_fgm_iso(fitness = 0, n = 3, maxfitness = 1, alpha = 1/2, Q = 2, pheno_opt = c(1,1,1))

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