restricted_pleiotropy: Creates restricted pleiotropy (as defined in Chevin et...

Description Usage Arguments Value

View source: R/generate_random_mutation.R

Description

Creates restricted pleiotropy (as defined in Chevin et al.(2010)) of a level m to a matrix of phenotypic effects of mutations. Insert a 0 at m random positions for each row of the matrix.

Usage

1
restricted_pleiotropy(mutation, m)

Arguments

mutation

A matrix of real number. The rows are mutations and the columns phenotypic dimensions.

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 of the same number of rows and columns as mut with m random positions equal to zero in each rows


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