sum_prod.comb
returns the sum on k_1+...+k_p=K+|I|-1, k_i>0 of the
products of prod(A[i,k_i], i in I)*prod(N[i,k_i], i not in I).
sum_prod.comb(I, A, N, K, p)
double : the result of the sum.
a vector of integers representing a subset of [1,p]
a matrix with p rows and K column. Each row contains the number of marked partition in 1<=k<=K groups for one of the p children of a given node.
a matrix with p rows and K column. Each row contains the number of partition in 1<=k<=K groups for one of the p children of a given node
an integer. The number of groups wanted.
an integer. The number of daughters of a node.
This function uses sum_simplex
to perform the wanted sum on a ad-hoc
matrix, combination of rows of A and N.