generate_random_mutation: Draw 'nb_mut' mutation(s) effect(s) on phenotype of 'n'...

Description Usage Arguments Value Examples

View source: R/generate_random_mutation.R

Description

Draw nb_mut mutation(s) effect(s) on phenotype of n dimensions with a variance of lambda per phenotypic dimension. Also applies any restricted pleiotropy of level m

Usage

1
generate_random_mutation(nb_mut, n, lambda, m = n)

Arguments

nb_mut

A natural number. Number of mutations in the output.

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.

m

A natural number inferior to n. Level of restricted pleiotropy which corresponds to the number of dimensions for which each mutation have a non-zero phenotypic effect. i.e. effects are equal to 0 in n-m dimensions. Default=n which corresponds to full pleiotropy.

Value

A matrix with nb_mut rows of random mutation effects in n columns (phenotypic dimension(s)).

Examples

1
2
3
4
#full pleiotropy
generate_random_mutation(nb_mut = 3, n = 3, lambda = 0.1)
#restricted pleiotropy
generate_random_mutation(nb_mut = 3, n = 3, lambda = 0.1, m = 1)

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