update.compute_betas_from_shifts: Update function for optimal value computation

View source: R/shifts_manipulations.R

update.compute_betas_from_shiftsR Documentation

Update function for 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

Details

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

Value

Updated matrix of size (Nnode + ntaxa)x1.


pbastide/PhylogeneticEM documentation built on Feb. 12, 2024, 1:27 a.m.