No BSD License
Highlights from
RMSE
RMSE
by Felix Hebeler
09 Sep 2008
(Updated 27 Nov 2008)
calculates root mean square error from data vector or matrix and the corresponding estimates.
|
Watch this File
|
| File Information |
| Description |
Short script that calculates root mean square error from data vector or matrix and the corresponding estimates.
Checks for NaNs in data and estimates and deletes them and then simply does:
r = sqrt( sum( (data(:)-estimate(:)).^2) / numel(data) );
That's it. |
| MATLAB release |
MATLAB 7.2 (R2006a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 11 Sep 2008 |
include NaN checking |
| 11 Sep 2008 |
- delete NaNs and use sum instead of nansum, eliminating the need for the statistical toolbox |
| 13 Oct 2008 |
By popular demand: using sum(data(:)) instead of sum(sum(data)). Thanks! |
| 27 Nov 2008 |
Updated description and code for better readability and |
|
Contact us at files@mathworks.com