mpl_update_tip: Initial update of tip values following uppass reconstruction.

View source: R/mpl_morphyex.R

mpl_update_tipR Documentation

Initial update of tip values following uppass reconstruction.

Description

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(s)

Thomas Guillerme

See Also

A null value (for now).

Other Morphy API functions: GapHandler(), MorphyErrorCheck(), MorphyWeights(), PhyDat2Morphy(), SingleCharMorphy(), UnloadMorphy(), is.morphyPtr(), mpl_apply_tipdata(), mpl_attach_rawdata(), mpl_attach_symbols(), mpl_delete_Morphy(), mpl_delete_rawdata(), mpl_first_down_recon(), mpl_first_up_recon(), mpl_get_charac_weight(), mpl_get_gaphandl(), mpl_get_num_charac(), mpl_get_num_internal_nodes(), mpl_get_numtaxa(), mpl_get_symbols(), mpl_init_Morphy(), mpl_new_Morphy(), mpl_second_down_recon(), mpl_second_up_recon(), mpl_set_charac_weight(), mpl_set_num_internal_nodes(), mpl_set_parsim_t(), mpl_translate_error(), mpl_update_lower_root(), summary.morphyPtr()


TreeSearch documentation built on Aug. 26, 2023, 9:06 a.m.