Learn R Programming

PhylogeneticEM (version 1.0.0)

update.parsimonyNumber: 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).

Value

A line vector corresponding to the parent node.

Details

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