1function demandEst = infer_minps(model, node, rt,
class, ql)
2% INFER_MINPS MINPS demand estimation method.
4% Runs both MLPS and RPS estimators and selects the one with the
5% smaller mean demand estimate.
8% model - LINE Network model with delay rates set and queue rates to estimate
9% node - PS queue node (Station
object)
10% rt - response time samples (column vector, n x 1)
11%
class - class of each sample (column vector, n x 1)
12% ql - queue lengths at arrival (n x R matrix, per-
class)
15% demandEst - 1 x R vector of estimated mean service demands
17% Copyright (c) 2012-2026, Imperial College London
20V = node.getNumberOfServers();
23demandEstMLPS = infer_mlps(model, node, rt,
class, ql);
25demandEstRPS = infer_rps(rt,
class, ql, V);
27% Choose the smallest mean result
28if mean(demandEstMLPS) < mean(demandEstRPS)
29 demandEst = demandEstMLPS;
31 demandEst = demandEstRPS;