init.parsimonyCost: Initialization for parsimonyCost.

View source: R/parsimonyNumber.R

init.parsimonyCostR Documentation

Initialization for parsimonyCost.

Description

init.parsimonyCost initialize a (ntaxa + Nnode) x (nclus) matrix with NAs everywhere, except for the tips.

Usage

init.parsimonyCost(phy, clusters)

Arguments

phy

a phylogenetic tree, class phylo.

clusters

the vector of the clusters of the tips.

Details

At a tip i in state k, the line-vector is initialized as follow : (1 - Ind(k=p)_{1<=p<=nclus})*Inf (where Inf * 0 = 0)

Value

A (ntaxa + Nnode)x(nclus) matrix, with ntaxa first lines initialized as described.


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