1% m = MomsFromFactorialMoms(fm)
3% Returns the raw moments given the factorial moments.
5% The raw moments are: `m_i=E(\mathcal{X}^i)`
7% The factorial moments are: `f_i=E(\mathcal{X}(\mathcal{X}-1)\cdots(\mathcal{X}-i+1))`
11% fm : vector of doubles
12% The list of factorial moments (starting with the first
17% m : vector of doubles
18% The list of raw moments
24function m=MomsFromFactorialMoms(fm)
33 m(i)=fm(i)+eh*(m(1:i-1))
';
35 m = reshape(m, size(fm));