ГО СТ Р 56047— 2014
Nv = 0;
for (i = 0:N-1)
if (x(i+1) > Thr)
Nv = Nv + 1;
end
end
if (N > 0)
Fd = Nv / N:
else
Fd = 0;
end
%
--------
function s = PO_WinAvg (L, x)
N = length (x);
s = 0;
for (i = L-1:N-1)
t = 0;
for (m = 0:L-1)
t = t + sqrt(x(i-m+1)):
end
s = s + (t / L)M:
end
if (N >= L)
s = sqrt (s / (N - L + 1));
end
function s = PO_VVtAvg (x. W)
N = length (x);
s = 0;
sW = 0;
for (i = 0:N-1)
s = s + W(i+1) * x(i+1);
sW = sW + W(i+1);
end
if (N > 0)
s = s / sW;
end
function LinAvg = PQ_LinAvg (x)
N = length (x);
s = 0;
for (i = 0:N-1)
s = s + x(i+1);
end
LinAvg = s I N;
% ----------
function RMSAvg = PQ RMSAvg (x)
N = length (x):
s = 0;
for <i = 0:N-1)
s = s + x(i
+1
)л2:
end
if (N > 0)
RMSAvg = sqrt(s I N):
else
RMSAvg = 0;
end
40