Learn R Programming

PhylogeneticEM (version 1.6.0)

sample_edges_intervals: Sample equally spaced edges.

Description

sample_edges_intervals samples K shifts, each in one of the K intervals regularly spaced on the height of the tree.

Usage

sample_edges_intervals(tree, K)

Value

vector of edges

Arguments

tree

: input tree

K

: number of edges to be sampled.

Details

In case where the tree is not ultrametric, its "height" is defined as the minimum tip height.