Learn R Programming

PhylogeneticEM (version 1.0.0)

update.parsimonyCost: 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.

Value

A line vector corresponding to the parent 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.