Description Usage Arguments Value Author(s) See Also Examples
Sample a state from the equlibrium distribution of a GeneralSubstitution object.
1 2 | ## S3 method for class 'GeneralSubstitution'
sampleState(this, ...)
|
this |
A GeneralSubstitution object. |
... |
Not used. |
A character vector of length one.
Botond Sipos, Gregory Jordan
For more information see GeneralSubstitution
.
1 2 3 4 5 6 7 8 9 10 | # create a GeneralSubstitution object
# provide an Alphabet object and the rates
p<-GeneralSubstitution(alphabet=BinaryAlphabet(), rate.list=list("1->0"=1,"0->1"=1))
# get equlibrium distribution
getEquDist(p)
# get equilibrium distribution via virtual field
p$equDist
# sample from equilibrium distribution
sampleState(p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.