ivy.chars.evolve module¶
Functions for evolving traits and trees.
-
ivy.chars.evolve.
brownian
(root, sigma=1.0, init=0.0, values={})[source]¶ Recursively evolve a trait by Brownian motion up from the node root.
- sigma: standard deviation of the normal random variate after one unit of branch length
- init: initial value
Returns: values - a dictionary mapping nodes to evolved values