Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Re: RMS Error question

$
0
0
"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.

Viewing all articles
Browse latest Browse all 19628

Trending Articles