View source: R/model_properties.R
findStationary | R Documentation |
Finds the stationary distribution of allele frequencies, if it exists, w.r.t. a given mutation matrix.
findStationary(mutmat)
mutmat |
A mutation matrix. |
A vector of length ncol(mutmat)
, or NULL.
m1 = mutationMatrix("equal", alleles = 1:4, rate = 0.1)
findStationary(m1)
m2 = mutationMatrix("random", alleles = 1:3, seed = 123)
a = findStationary(m2)
a %*% m2 - a # check
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.