Description Usage Arguments Value Examples
View source: R/generate_random_mutation.R
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
1 | generate_random_mutation(nb_mut, n, lambda, m = n)
|
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 |
A matrix with nb_mut
rows of random mutation effects in n
columns (phenotypic dimension(s)).
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.