update.allocate_regimes_from_shifts: 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
Value
regime of the daughter node.
Details
This function is used in function allocate_regimes_from_shifts
and is
designed to furnish function recursionDown
with the right structure of
data.