1function fp = moment_upfactorial_from_negbinomial(bm)
2% fp = moment_upfactorial_from_negbinomial(bm)
4% Converts
the negative-binomial moments b_n^- = E[nchoosek(N+n-1,n)] of a
5% discrete random variable N into
the upward-factorial moments
6% f_n^+ = E[N(N+1)...(N+n-1)] via
the one-to-one correspondence
11% bm: vector of length n+1 holding b_0^-,...,b_n^-, i.e. bm(i)
is the moment
12% of order i-1 and bm(1) = b_0^- = 1
15% fp: vector of length n+1 holding f_0^+,...,f_n^+, with
the same
19% A. Heindl and A. van de Liefvoort. Moment conversions for discrete
20% distributions. PMCCS, 2003, eq. (7).
23% fp = moment_upfactorial_from_negbinomial([1,2,4,22/3])
29 fp(i+1) = factorial(i) * bmcol(i+1);