"Yannos M" wrote in message <k6b1hg$fq1$1@newscl01ah.mathworks.com>...
> Hi,
>
> I have two vectors and I'd like to calculate the RMS error. Thus, I used the function
>
> r=sqrt(sum((data(:)-estimate(:)).^2)/numel(data));
>
> as found here:
> http://www.mathworks.com/matlabcentral/fileexchange/21383-rmse
>
> However, I get the RMS error to be greater than the MAX error! Is this possible?
>
> THanks
No, that's not possible. It always holds that
RMS <= max(abs(data-estimate))
Best wishes
Torsten.
> Hi,
>
> I have two vectors and I'd like to calculate the RMS error. Thus, I used the function
>
> r=sqrt(sum((data(:)-estimate(:)).^2)/numel(data));
>
> as found here:
> http://www.mathworks.com/matlabcentral/fileexchange/21383-rmse
>
> However, I get the RMS error to be greater than the MAX error! Is this possible?
>
> THanks
No, that's not possible. It always holds that
RMS <= max(abs(data-estimate))
Best wishes
Torsten.