make_mutation: Mutation

Description Usage Arguments Details Value Author(s)

Description

Really basic mutation of traits, assuming normally distributed mutants for real valued traits.

Usage

1

Arguments

vcv

A variance-covariance matrix or a variance value.

Details

For now, this just does mulivariate-normal mutation (continuous traits), but may expand to deal with diallelic loci etc.

For some uses (e.g., what we do in tree) we may want to enable mutation to be on the log scale.

Value

A generating function, taking traits and mutants as arguments. For the 1d case, traits is a vector over types/species, while for the 2d case it is a matrix with rows representing types/species and columns traits. The vector mutants is always over types/species and is the number of mutants to generate for each type.

Author(s)

Rich FitzJohn


traitecoevo/Revolve documentation built on May 31, 2019, 7:42 p.m.