1function PIE=map_pie(MAP)
2% PIE=map_pie(MAP) - Equilibrium distribution of the embedded
6% MAP: a MAP in the form of {D0,D1}
9% PIE: equilibrium distribution of the discrete-time Markov chain embedded
10% at departure instants
P=map_embedded(MAP)=((-D0)^-1)*D1
12A=map_prob(MAP)*MAP{2};
13PIE=A/(A*ones(length(MAP{2}),1));