update.allocate_regimes_from_shifts: Update function for regime allocation.

View source: R/shifts_manipulations.R

update.allocate_regimes_from_shiftsR Documentation

Update function for regime allocation.

Description

update.allocate_regimes_from_shifts computes the regime of a daughter node, knowing the regime at the parent node and the vector of shifts positions

Usage

update.allocate_regimes_from_shifts(edgeNbr, ancestral, shifts_edges, ...)

Arguments

edgeNbr

: Number of the edge considered

ancestral

: regime of the parent node

shifts_edges

positions on edges

Details

This function is used in function allocate_regimes_from_shifts and is designed to furnish function recursionDown with the right structure of data.

Value

regime of the daughter node.


PhylogeneticEM documentation built on Aug. 31, 2022, 9:16 a.m.