update.compute_betas_from_shifts: Update function ofr optimal value computation
Description
update.compute_betas_from_shifts
computes the optimal value at a daughter node,
knowing the optimal value at the parent node and the vector of shifts.
Usage
update.compute_betas_from_shifts(edgeNbr, ancestral, shifts, ...)
Arguments
edgeNbr
: Number of the edge considered
ancestral
: Computed vector for the parental node
shifts
position and values of the shifts
Value
Updated matrix of size (nNodes + ntaxa)x1.
Details
This function is used in function compute_betas_from_shifts
and is designed to
furnish function recursionDown
with the right structure of data.