ivy.ltt module

Compute lineages through time

ivy.ltt.ltt(node)[source]

Calculate lineages through time. The tree is assumed to be an ultrametric chronogram (extant leaves, with branch lengths proportional to time).

Parameters:node (Node) – A node object. All nodes should have branch lengths.
Returns:(times, diversity) - 1D-arrays containing the results.
Return type:tuple
ivy.ltt.test()[source]
ivy.ltt.traverse(node, t=0, results=None)[source]

Recursively traverse the tree and collect information about when nodes split and how many lineages are added by its splitting.