update.parsimonyCost: Actualization for parsimonyCost.

View source: R/parsimonyNumber.R

update.parsimonyCostR Documentation

Actualization for parsimonyCost.

Description

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

Usage

update.parsimonyCost(daughtersParams, ...)

Arguments

daughtersParams

a (ndaughters) x (nclus) matrix with the line vectors of the cost for the daughters node.

Details

This function computes the cost of putting the parent in a state k, as the minimum number of shifts needed to get the given clustering of the trees bellow parental node.

Value

A line vector corresponding to the parent node.


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