Description Usage Arguments Details Value Author(s) References Examples
View source: R/GetNLabelledMultifurcatingRootedTrees.R
Gets the total number of labelled multifurcating rooted trees for N tips.
1 |
N |
The number of tips. |
Uses equation 3.1 (and illustrated in Figure 3.6) of Felsenstein (2004).
Note that direct counts are possible only up to N = 145, beyond that R will return only "Inf".
A list containg two items, TotalTrees (the total number of trees) and TreesByNodeCount (a vector of trees by node count from 1 to N - 1).
Graeme T. Lloyd graemetlloyd@gmail.com
Felsenstein 2004
1 2 3 4 5 6 | # Get numbers of trees:
GetNLabelledMultifurcatingRootedTrees(8)
# Get just the total number of trees for 1:10 tips
unlist(lapply(as.list(1:10), function(x)
GetNLabelledMultifurcatingRootedTrees(x)$TotalTrees))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.