1% hm = HankelMomsFromMoms(m)
3% Returns the Hankel moments given the raw moments.
5% The raw moments are: `m_i=E(\mathcal{X}^i)`
7% The ith Hankel moment
is the determinant of matrix
8% `\Delta_{i/2}`,
if i
is even,
9% and it
is the determinant of `\Delta^{(1)}_{(i+1)/2}`,
10%
if i
is odd. For the definition of matrices `\Delta`
11% and `\Delta^{(1)}` see [1]_.
15% m : vector of doubles
16% The list of raw moments (starting with the first
21% hm : vector of doubles
22% The list of Hankel moments
28function hm=HankelMomsFromMoms(m)
34 H = hankel(m(1:N), m(N:2*N-1));
37 H = hankel([1,m(1:N-1)], m(N-1:2*N-2));