Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


TreeSearch (version 0.2.2)

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, extra = 0)

NUnrooted1(tips, extra = 0)

LnUnrooted1(tips, extra = 0)

LnRooted(tips, extra = 0)

LnUnrooted(splits)

NUnrooted(splits)

LnUnrootedMult(splits)

NUnrootedMult(splits)

Arguments

tips

The number of tips.

extra

the number of points at which another branch cannot be added.

splits

vector listing the number of taxa in each tree bipartition.

Functions

  • NUnrooted1: Number of unrooted trees

  • LnUnrooted1: Log Number of unrooted trees

  • LnRooted: Log Number of rooted trees

  • LnUnrooted: Log number of unrooted trees

  • NUnrooted: Number of unrooted trees

  • LnUnrootedMult: Log unrooted mult

  • NUnrootedMult: Number of unrooted trees (mult)

References

Carter1990TreeSearch

Carter1990TreeSearch

Examples

Run this code
# 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))

# }

Run the code above in your browser using DataLab