ivy.sim.discrete_sim module¶
-
ivy.sim.discrete_sim.
sim_discrete
(tree, Q, anc=None, charname=None, rseed=None)[source]¶ Simulate discrete character on a tree given transition rate matrix.
Parameters: Returns: - Copy of tree with each node containing its simulated
state and the character history of its subtending branch.
Return type: