recursionDown: Generic recursion down the tree.

View source: R/generic_functions.R

recursionDownR Documentation

Generic recursion down the tree.

Description

recursionDown uses the function updateDown to compute daughters rows of matrix param.

Usage

recursionDown(phy, params, updateDown, ...)

Arguments

phy

Input tree, in cladewise order.

params

Matrix of parameters to update by the recursion

updateDown

Function to be used for the update

...

Arguments to be used by the function updateDown

Details

This function is to be used in other more complex function that need to update a quantity from the root to the tips of a tree. Note that the input tree must be in cladewise order.

Value

Matrix of parameters updated.


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