View source: R/partitionsNumber.R
update.partitionsNumber.gen | R Documentation |
update.partitionsNumber.gen
apply the actualization formula to get
Nk and Ak of a node given its daughters.
update.partitionsNumber.gen(daughtersParams, ...)
daughtersParams |
: matrix with 2*npart columns. Each row contains the result of partitionsNumber for the children of a given node |
Uses functions sum_partitions
and sum_simplex
to compute
the needed sums.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.