SampleBranch distribution
SampleBranch(TimeTree tree, Number age)
Randomly sample a branch among the branches at a given age in the given tree, representing by the node attached to this branch. The function would be deterministic when there is only one branch at the given age. The branch is represented by the node under it.
Parameters
- TimeTree tree - the full tree to sample branch from.
- Number age - the age that branch would sample at.
Return type
Examples
- substituteClade.lphy