TreeTools (version 0.1.3)

N1Spr: Number of trees one SPR step away

Description

N1Spr calculates the number of trees one subtree prune-and-regraft operation away from a binary input tree using the formula given by Allen and Steel (2001).

Usage

N1Spr(n)

IC1Spr(n)

Arguments

n

Integer vector specifying the number of tips in a tree.

Value

N1SPR returns an integer vector.

IC1SPR returns an numeric vector.

Functions

  • IC1Spr: Information content of trees 0 or 1 SPR step from tree with n tips.

Details

IC1Spr calculates the information content of trees at this distance: i.e. the entropy corresponding to the proportion of all possible n-tip trees whose SPR distance is at most one from a specified tree.

References

Allen2001TreeTools

Examples

Run this code
# NOT RUN {
N1Spr(4:6)
IC1Spr(5)

# }

Run the code above in your browser using DataLab