LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
pfqn_mushift.m
1%{
2%{
3 % @file pfqn_mushift.m
4 % @brief Shift load-dependent service rate vector by removing first element.
5%}
6%}
7
8%{
9%{
10 % @brief Shift load-dependent service rate vector by removing first element.
11 % @fn pfqn_mushift(mu, iset)
12 % @param mu Load-dependent rate matrix (MxN).
13 % @param iset Set of station indices to shift.
14 % @return mushifted Shifted rate matrix (Mx(N-1)).
15%}
16%}
17function mushifted=pfqn_mushift(mu,iset)
18% shifts the service rate vector
19[M,N]=size(mu);
20
21for i=iset(:)'
22 for m=1:M
23 if m==i
24 mushifted(m,1:(N-1))=mu(m,2:N);
25 else
26 mushifted(m,1:(N-1))=mu(m,1:(N-1));
27 end
28 end
29end
30end