1function kappa = moment_joint_factcumulant_from_factorial(f)
2% kappa = moment_joint_factcumulant_from_factorial(f)
4% Converts the joint factorial moments of a discrete random vector into its
5% joint factorial cumulants, the coefficients of the logarithm of the joint
6% probability generating function expanded about z = (1,...,1),
8% log E[prod_j z_j^(N_j)] =
sum_(a ~= 0) kappa_a prod_j (z_j-1)^(a_j) / a_j!
10% They stand to the joint factorial moments exactly as the joint cumulants
11% stand to the joint power moments, so the same recursion applies. For a
12% multivariate Poisson vector with independent components every joint factorial
13% cumulant of order two or more vanishes; for the per-class counts of a marked
14% MAP they measure the departure from independent Poisson marking.
17% f: array of size (n_1+1)x...x(n_d+1) holding the joint factorial moments,
18% with element 1 equal to 1
21% kappa: array of the same size holding the joint factorial cumulants,
25% kappa = moment_joint_factcumulant_from_factorial(f);
28% V.
P. Leonov and A. N. Shiryaev. On a method of calculation of
29% semi-invariants. Theory of Probability and its Applications,
32kappa = moment_joint_cumulant_from_raw(f);