RMSE

版本 1.1.0.0 (466 字节) 作者: Felix Hebeler
calculates root mean square error from data vector or matrix and the corresponding estimates.
15.2K 次下载
更新时间 2016/3/31

查看许可证

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.

引用格式

Felix Hebeler (2024). RMSE (https://www.mathworks.com/matlabcentral/fileexchange/21383-rmse), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2006a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Polynomials 的更多信息
致谢

启发作品: rmse(true_values, prediction)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Updated description and code for better readability and
BSD update

1.0.0.0

By popular demand: using sum(data(:)) instead of sum(sum(data)). Thanks!