LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
moment_jointtrans.m
1function B = moment_jointtrans(A, edge)
2% B = moment_jointtrans(A, edge)
3%
4% Applies the conversion matrix of one edge of the house of moments along every
5% dimension of a joint moment array. This is the separable (Kronecker product)
6% form shared by all the joint conversions except the cumulant and the central
7% ones.
8%
9% Input:
10% A: joint moment array of size (n_1+1)x...x(n_d+1)
11% edge: edge label accepted by moment_housematrix
12%
13% Output:
14% B: array of the same size as A holding the converted joint moments
15%
16% Example:
17% f = moment_jointtrans(m, 'factorial_from_raw');
18%
19% Reference:
20% A. Heindl and A. van de Liefvoort. Moment conversions for discrete
21% distributions. PMCCS, 2003.
22
23sz = moment_tensorsize(A);
24B = A;
25for mode = 1:numel(sz)
26 B = moment_tensortrans(B, moment_housematrix(edge, sz(mode)-1), mode);
27end
28end