1function s = moment_stirling1(n)
2% s = moment_stirling1(n)
4% Triangle of the
signed Stirling numbers of the first kind s(i,j), defined as
5% the coefficients of x^j in the falling factorial
7%
sum_{j=0}^{i} s(i,j) x^j = x(x-1)(x-2)...(x-i+1)
9% These numbers are the coefficients that convert power moments into factorial
10% moments. They relate to the Stirling cycle numbers via
11% s(i,j) = (-1)^(i-j) * sigma(i,j).
14% n: maximum order (n >= 0)
17% s: (n+1)x(n+1) matrix with s(i+1,j+1) = s(i,j) in the 0-based notation of
18% the reference. Entries with j > i are zero.
21% A. Heindl and A. van de Liefvoort. Moment conversions
for discrete
22% distributions. PMCCS, 2003, eq. (10) and eq. (12).
25% s = moment_stirling1(3)
27sigma = moment_stirlingcycle(n);
31 s(i+1,j+1) = (-1)^(i-j) * sigma(i+1,j+1);