R: Update function for optimal value computation

update.compute_betas_from_shifts {PhylogeneticEM} | R 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 (nNodes + ntaxa)x1.

[Package PhylogeneticEM version 1.1.0 Index]