LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
pfqn_cdfun.m
1%{
2%{
3 % @file pfqn_cdfun.m
4 % @brief AMVA-QD class-dependence function for queue-dependent scaling.
5%}
6%}
7
8%{
9%{
10 % @brief AMVA-QD class-dependence function for queue-dependent scaling.
11 % @fn pfqn_cdfun(nvec, cdscaling)
12 % @param nvec Population state vector.
13 % @param cdscaling Cell array of class-dependent scaling functions.
14 % @return r Scaling factor vector for each station.
15%}
16%}
17function r = pfqn_cdfun(nvec,cdscaling)
18% R = PFQN_CDFUN(NVEC,PHI)
19
20% AMVA-QD class-dependence function
21
22% Copyright (c) 2012-2026, Imperial College London
23% All rights reserved.
24M = size(nvec,1);
25r = ones(M,1);
26if ~isempty(cdscaling)
27 for i = 1:M
28 r(i) = 1 / cdscaling{i}(nvec(i,:));
29 end
30end
31end