1function fp = moment_upfactorial_from_raw(m)
2% fp = moment_upfactorial_from_raw(m)
4% Converts
the power (raw) moments m_n = E[N^n] of a discrete random variable
5% N into
the upward-factorial moments f_n^+ = E[N(N+1)...(N+n-1)] by means of
6%
the Stirling cycle numbers,
8% f_n^+ = sum_{k=0}^{n} sigma(n,k) * m_k
10% Upward-factorial moments are of use in moment-matching techniques
for
11% matrix-geometric and discrete phase-type distributions.
14% m: vector of length n+1 holding m_0,...,m_n, i.e. m(i)
is the moment of
15% order i-1 and m(1) = m_0 = 1
18% fp: vector of length n+1 holding f_0^+,...,f_n^+, with
the same
22% A. Heindl and A. van de Liefvoort. Moment conversions
for discrete
23% distributions. PMCCS, 2003, Section 4.
26% fp = moment_upfactorial_from_raw([1,2,6,22])
30fp = moment_stirlingcycle(n) * mcol;