Description Usage Arguments Value Author(s) See Also Examples
Rescale the scaled rate matrix of a QMatrix object aggregated by a ToleranceSubstitution object.
The QMatrix objects aggregated by the ToleranceSubstitution objects store two rate matrices: one containes the rates provided by the user (unscaled rate matrix), the other matrix (scaled rate matrix) is rescaled to have the expected number of subsitutions per unit time equal to one when the process is at equlibrium. This method performes the re-scaling of the scaled rate matrix in the associated QMatrix object based on the equlibrium distribution and the unscaled rate matrix.
This method is mainly used internally as the scaled matrix is rescaled every time the unscaled matrix is modifed.
1 2 | ## S3 method for class 'ToleranceSubstitution'
rescaleQMatrix(this, ...)
|
this |
A ToleranceSubstitution object. |
... |
Not used. |
Invisible TRUE.
Botond Sipos, Gregory Jordan
For more information see ToleranceSubstitution
.
1 2 3 4 5 6 | # create a ToleranceSubstitution object
# provide an Alphabet object and the rates
p<-ToleranceSubstitution(alphabet=BinaryAlphabet(), rate.list=list("1->0"=1,"0->1"=3))
# rescale rate matrix
rescaleQMatrix(p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.