Description Usage Arguments Details Value Author(s)
Generate a realisation of the Wright-Fisher population model
1 |
N |
constant population size |
N.gen |
number of generations to simulate |
prob |
function providing probabilities for (non-uniform) multinomial sampling of parents |
The attribute 'history' contains an (N.gen-1)xN matrix , where the (i,j)th entry specifies the parent of individual j of generation i+1. The function prob should take a vector argument specifying a set of individuals; and should return a vector of (unnormalised) probability weights.
an object of class 'genealogy'
Suzie Brown
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.