fnUnitMixture
- fnUnitMixture
model : | RateGenerator (pass by const reference) |
The mixture models to mix. | |
rootFrequencies : | Simplex (pass by const reference) |
State frequencies at the root. | |
Default : NULL | |
rate : | RealPos (pass by const reference) |
Scale by model by this rate. | |
Default : 1 |
M := fnUnitMixture( fnJC(4) )
M := fnJC(4) |> fnUnitMixture() # nested functions can be expressed using pipes.
# Explicit conversion to SiteMixtureModel
M := fnGTR(er,pi) |> fnUnitMixture() |> fnGammaASRV(alpha) |> fnInvASRV(p_inv)
# Implicit conversion to SiteMixtureModel
M := fnGTR(er,pi) |> fnGammaASRV(alpha) |> fnInvASRV(p_inv)
# Specifying the root frequencies
M := fnDECRateMatrix(dr,er,"Include") |> fnUnitMixture(rootFrequencies=simplex(rep(1,n_states)))