1% m3 = APH3rdMomentUpperBound(m1, m2, n)
3% Returns the upper bound of the third moment of acyclic
4% phase-type (APH) distributions of order n.
18% The highest third moment an order-n APH can have with
19% the given first and second moment.
23% .. [1] A. Bobbio, A. Horvath, M. Telek,
"Matching three
24% moments with minimal acyclic phase type
25% distributions," Stochastic models, pp. 303-326, 2005.
27function m3 = APH3rdMomentUpperBound (m1, m2, n)
33 m3 = m1 * m2 * (2.0*(n-2.0)*(n*n2-n-1.0)*sqrt(1.0+(n*(n2-2.0))/(n-1.0)) + (n+2.0)*(3.0*n*n2-2.0*n-2.0)) / (n*n*n2);