1function MOMENTS=map_moment(MAP,ORDERS)
2% MOMENTS=map_moment(MAP,ORDERS) - Compute (power) moments of interarrival
3% times of the specified order
6% MAP: a MAP in the form of {D0,D1}
7% ORDERS: set of moment orders (1=>E[X], 2=>E[X^2], ...)
10% MOMENTS: moments returned in the same order of ORDERS
13% - map_moment(MAP,1:2) return the first two power moments E[X], E[X^2]
14% - map_moment(MAP,2) return the second power moment E[X^2]
35 MOMENTS(t)=factorial(i)*x*A*y;