Skip to contents

Ambiguous terminal state sets need to be resolved after the first uppass based on descendant state values in order for local reoptimisation procedures to be accurate and for inapplicable step counting to proceed accurately. This function calls updaters for the records of states active on the subtrees, thereby allowing the second downpass to accurately reconstruct subtree state activity. Because this function needs to be fairly high-performance, it does not do much checking for parameter validity, thus unsafe usage of this function might not be caught. It is up to calling functions to ensure that the appropriate parameters have been set before use.

Usage

mpl_update_tip(tip_id, anc_id, morphyobj)

Arguments

tip_id

The index of the tip being updated.

anc_id

The index of the tip's immediate ancestor.

morphyobj

An instance of the Morphy object.

Value

The integral parsimony length (right now)

Author

Thomas Guillerme