1function d2 = da_traffic_superpos(lambda, a2)
2% D2 = DA_TRAFFIC_SUPERPOS(LAMBDA, A2)
4% Asymptotic-method superposition of independent flows with rates LAMBDA
5% and squared coefficients of variation A2: returns
the rate-weighted SCV
6% mixture of
the merged flow (Whitt
's QNA stationary-interval formula).
7% Entries with non-finite rates are ignored.
9% Copyright (c) 2012-2026, Imperial College London
12a2 = a2(isfinite(lambda));
13lambda = lambda(isfinite(lambda));
14d2 = a2(:)' * lambda(:) / sum(lambda);