NRooted: Number of rooted/unrooted trees
These functions return the number of rooted or unrooted trees consistent with a given pattern
of splits.
Description
Functions starting N return the number of rooted or unrooted trees, functions starting Ln
provide the log of this number. Calculations follow Carter et al. 1990, Theorem 2.
Usage
NRooted(tips)
NUnrooted(tips)
LnUnrooted(tips)
LnRooted(tips)
LnUnrootedSplits(splits)
NUnrootedSplits(splits)
LnUnrootedMult(splits)
NUnrootedMult(splits)
Arguments
tips
The number of tips.
splits
vector listing the number of taxa in each tree bipartition.
# NOT RUN { NRooted(10)
NUnrooted(10)
LnRooted(10)
LnUnrooted(10)
# Number of trees consistent with a character whose states are 00000 11111 222 NUnrootedMult(c(5,5,3))
# }