getEquDist.GeneralSubstitution: Get the equilibrium distribution from a GeneralSubstitution...

Description Usage Arguments Value Author(s) See Also Examples

Description

Get the equilibrium distribution from a GeneralSubstitution object.

Usage

1
2
## S3 method for class 'GeneralSubstitution'
getEquDist(this, dummy=NA, ...)

Arguments

this

A GeneralSubstitution object.

dummy

Not used.

...

Not used.

Value

The new equlibrium distribution (invisible).

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see GeneralSubstitution.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
	# 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
	# 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
 

phylosim documentation built on Nov. 22, 2019, 1:07 a.m.