Description Usage Arguments Value Author(s) See Also Examples
Get the equilibrium distribution from a ToleranceSubstitution object.
1 2 | ## S3 method for class 'ToleranceSubstitution'
getEquDist(this, dummy=NA, ...)
|
this |
A ToleranceSubstitution object. |
dummy |
Not used. |
... |
Not used. |
The new equlibrium distribution (invisible).
Botond Sipos, Gregory Jordan
For more information see ToleranceSubstitution
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # 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
# re-set the equilibrium distribution
dist<-p$equDist * 3
dist
setEquDist(p,dist)
p$equDist
# re-set equilibrium distribution via virtual field
p$equDist<-p$equDist * 2
p$equDist
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.