function y = RMSmeter(x)
% This function calculates the root-mean
% of the integral of the square of a signal
T = x(1); % The time of taking the MEAN
Y2 = x(2); % The integral  square of the signal
if T <= 0
    y = 0;
else
    y = sqrt(Y2/T);
end

