Description Usage Arguments Value Author(s) See Also Examples
Sample a state from the equlibrium distribution of a ToleranceSubstitution object.
1 2 | ## S3 method for class 'ToleranceSubstitution'
sampleState(this, ...)
|
this |
A ToleranceSubstitution object. |
... |
Not used. |
A character vector of length one.
Botond Sipos, Gregory Jordan
For more information see ToleranceSubstitution
.
1 2 3 4 5 6 7 8 9 10 | # create a ToleranceSubstitution object
# provide an Alphabet object and the rates
p<-ToleranceSubstitution(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.