update.parsimonyNumber: Actualization for parsimonyNumber.

View source: R/parsimonyNumber.R

update.parsimonyNumberR Documentation

Actualization for parsimonyNumber.

Description

update.parsimonyNumber compute the line vector of a parent node, given the vectors of its daughters.

Usage

update.parsimonyNumber(daughters, daughtersParams, cost, ...)

Arguments

daughters

the identifiers of the daughters nodes.

daughtersParams

a ndaughters x (nclus) matrix with the line vectors of the number of solutions for the daughters nodes.

cost

the (ntaxa + Nnode) x nclus matrix of costs (computed by parsimonyCost).

Details

This function uses function compute_state_filter to find all the admissible states of the daughters, given a starting state for the parent.

Value

A line vector corresponding to the parent node.


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