1function f = moment_factorial_from_factcumulant(kappa)
2% f = moment_factorial_from_factcumulant(kappa)
4% Converts the factorial cumulants of a discrete random variable N into its
5% factorial moments f_n = E[N(N-1)...(N-n+1)], by running the recursion
7% f_n =
sum_{k=1}^{n} nchoosek(n-1,k-1) * kappa_k * f_(n-k)
9% forward with f_0 = 1. Inverse of moment_factcumulant_from_factorial.
12% kappa: vector of length n+1 holding the factorial cumulants of order
13% 0,...,n. Element 1
is ignored
16% f: vector of length n+1 holding f_0,...,f_n, with the same orientation as
20% f = moment_factorial_from_factcumulant([0, 2, 0, 0]);
23% V.
P. Leonov and A. N. Shiryaev. On a method of calculation of
24% semi-invariants. Theory of Probability and its Applications,
27f = moment_raw_from_cumulant(kappa);