1% [lb, ub] = MAP2CorrelationBounds(moms)
3% Returns the upper and lower correlation bounds
for a MAP(2)
4% given the three marginal moments.
10% moms : vector, length(3)
11% First three marginal moments of the inter-arrival times
16% Lower correlation bound
18% Upper correlation bound
22% .. [1] L Bodrog, A Heindl, G Horvath, M Telek,
"A Markovian
23% Canonical Form of Second-Order Matrix-Exponential
24% Processes," EUROPEAN JOURNAL OF OPERATIONAL RESEARCH
25% 190:(2) pp. 459-477. (2008)
28function [lb, ub] = MAP2CorrelationBounds (moms)
34 h2 = m2/(2.0*m1*m1) - 1;
35 h3 = m3/(6.0*m1*m1*m1)-m2*m2/(4.0*m1*m1*m1*m1);
41 gub = -(h2+sqrt(-h3))^2;
44 if h2<=0 || h3/h2+h2<1
47 glb = h2 * (h3+h2*h2-h2-sqrt((h3+h2*h2-h2)^2+4.0*h2*h2*h2)) / (h3+h2*h2-h2+sqrt((h3+h2*h2-h2)^2+4.0*h2*h2*h2));