1% order = MEOrderFromMoments(moms, prec)
3% Returns the order of ME distribution that can realize
8% moms : list of doubles
10% prec : double, optional
11% Precision used to detect
if the determinant of the
12% Hankel matrix
is zero. The
default value
is 1e-12.
17% The order of ME distribution that can realize the
22% .. [1] L. Bodrog, A. Horvath, M. Telek,
"Moment
23% characterization of matrix exponential and Markovian
24% arrival processes," Annals of Operations Research,
25% vol. 160, pp. 51-68, 2008.
27function order = MEOrderFromMoments (moms, prec)
29 if ~exist(
'prec',
'var')
33 sizem = floor((length(moms)+1)/2);
34 rmoms = [1 ReducedMomsFromMoms(moms)];
40 hankel(i,j) = rmoms(i+j-1);
43 if abs(det(hankel)) < prec