ГО СТ Р 56047— 2014
[Nchan. NpJ = size (EHS.EHS);
s = 0;
(or (j = 0:Nchan-1)
s = s + PQ_LinPosAvg (EHS.EHS(j+1.:));
end
EHSB = 1000*s/Nchan:
%
------------------------------
(unction [ADBB. MFPDB] = PQ_avgPD (PD)
global PQopt
cO = 0.9:
if (isempty (PQopt))
c1 = 1:
else
c1 = PQopt.PDfactor;
end
N = length (PD.Pc):
Phc = 0;
Pcmax = 0:
Qsum = 0:
nd = 0;
for (i = 0:N-1)
Phc = cO * Phc + (1 - cO) * PD.Pc<i+1);
Pcmax = max (Pcmax * c1. Phc):
if (PD.Pc(i+1) > 0.5)
nd = nd + 1;
Qsum = Qsum + PD.Qc(t+1);
end
end
if (nd == 0)
ADBB = 0;
elseif (Qsum > 0)
ADBB = tog10 (Qsum/nd):
else
ADBB = -0.5:
end
MFPDB = Pcmax;
%
---------------------------
function [TotalNMRB, RelDistFramesB] = PQ_avgNMRB (NMR)
(Nchan. NpJ = size (NMR.NMRavg);
Thr = 10A(1.5 / 10);
s = 0;
for (j = 0:Nchan-1)
s = s + 10 * log10 (PQJJnAvg (NMR.NMRavg(j+1,:)));
end
TotalNMRB = s / Nchan;
s = 0;
for (j = 0:Nchan-1)
s = s + PQ_FractThr (Thr. NMR.NMRmax(j+1
end
RelDistFramesB = s / Nchan:
%---------------------------
function [BandwidthRefB. BandwidthTestB] = PQ_avgBW (BVV)
[Nchan. Np] = size (BW.BWRef).
sR = 0;
sT = 0:
38