function out = rms(in)

    k = 0;

    for i=1:length(in)
        k = k + in(i,1)^2;
    end

    out = sqrt(k/length(in));

end