tree_from_trajectory: Tree Simulation from a Trajectory

Description Usage Arguments Value Examples

View source: R/removal_tree_sampling_aux.R

Description

Reconstructs a tree from a trajectory and known sampling times.

Usage

1
tree_from_trajectory(traj, sampling_times)

Arguments

traj

an object of class trajectory

sampling_times

vector containing the sampling times (s_j)_{j=1...k} in increasing order

Value

an object of class tree, containing an incident branch length branch_length and a list of 0 to 2 subtrees subtrees

Examples

1
2
tree_from_trajectory(traj=list('t'=c(0,0.5,1,2), 'N'=c(1,2,1,1),
'removed'=c(1)), sampling_times=c(1,2))

JasmineGamblin/bdTreeSim documentation built on Nov. 11, 2019, 6:28 a.m.