function [C] = C_machines(p_n,M,s) % C_MACHINES - coefficient of loss for machines % % Input: % p_n: is the steady-state probabity we are in the state X(t)=n % M: the number of machines % s: the number of servers % % References: % % Introduction to Probability Models: Chapter 10 % by Roe Goodman % % Written by: % -- % John L. Weatherwax 2007-09-10 % % email: wax@alum.mit.edu % % Please send comments and especially bug reports to the % above email address. % %----- nArray = (s+1):M; nmsArray = nArray-s; C = dot( nmsArray, p_n((s+1+1):(M+1)) )/M;