1function MOMENTS = mmap_forward_moment(
MMAP,ORDERS,NORM)
2% Computes the theoretical forward moments of an
MMAP.
5% - ORDERS: vector with the orders of the moments to compute
6% - NORM: 0 to
return F_{i,c}: M_i = sum F_{i,c}
7% 1 (
default) to
return F_{i,c}: M_i = sum F_{i,c} * p_c
9% M_i
is the
class independent moment of order i
10% F_{i,c}
is the
class-c forward moment of order i
11% p_c
is the probability of arrivals of
class c
13% - MOMENTS: the forward moments as a matrix F(c,i) = F_{i,c}
15% by
default moments are normalized
24 MOMENTS = sym(zeros(C,K));
34 pa = sum(pie * (-
MMAP{1}\
MMAP{2+a}));
38 for h = 1:length(ORDERS)
41 MOMENTS(a,h) = fk/pa * sum(pie * (-
MMAP{1} \
MMAP{2+a}) * M^k);