update.partitionsNumber.gen: Update formula in the general case

View source: R/partitionsNumber.R

update.partitionsNumber.genR Documentation

Update formula in the general case

Description

update.partitionsNumber.gen apply the actualization formula to get Nk and Ak of a node given its daughters.

Usage

update.partitionsNumber.gen(daughtersParams, ...)

Arguments

daughtersParams

: matrix with 2*npart columns. Each row contains the result of partitionsNumber for the children of a given node

Details

Uses functions sum.partitions and sum.simplex to compute the needed sums.

Value

vector of size 2*npart. For k=1:npart it contains the number of partitions with k groups compatible with the sub tree starting at the current node ; and for k=(npart+1):2*npart, it contains the number of "marked" partitions with (k-npart) groups compatible with the sub tree starting at the current node.


PhylogeneticEM documentation built on Aug. 31, 2022, 9:16 a.m.