LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
moment_joint_central_from_tail.m
1function mc = moment_joint_central_from_tail(t)
2% mc = moment_joint_central_from_tail(t)
3%
4% Joint central moments of a nonnegative integer random vector from its joint
5% survival array, composing the four edges that separate the two vertices:
6% tail -> binomial -> factorial -> raw -> central, with the means read off the
7% raw array.
8%
9% This is the whole path from a solver that produces survival probabilities (a
10% closed queueing network through its normalizing constants, a CTMC through its
11% stationary distribution, a simulator through a histogram) to the covariances
12% and the higher central moments.
13%
14% Input:
15% t: array of size (n_1+1)x...x(n_d+1) holding the joint survival
16% probabilities and covering the support, element 1 being 1
17%
18% Output:
19% mc: array of the same size holding the joint central moments. The entry of
20% multi-order e_j+e_l is the covariance of N_j and N_l
21%
22% Example:
23% mc = moment_joint_central_from_tail(t);
24%
25% Reference:
26% A. Heindl and A. van de Liefvoort. Moment conversions for discrete
27% distributions. PMCCS, 2003, Section 4.
28
29b = moment_joint_binomial_from_tail(t);
30f = moment_joint_factorial_from_binomial(b);
31mc = moment_joint_central_from_raw(moment_joint_raw_from_factorial(f));
32end