RMSE
Version 1.1.0.0 (466 Bytes) von
Felix Hebeler
calculates root mean square error from data vector or matrix and the corresponding estimates.
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.
Zitieren als
Felix Hebeler (2026). RMSE (https://de.mathworks.com/matlabcentral/fileexchange/21383-rmse), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2006a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Mathematics > Elementary Math > Polynomials >
Mehr zu Polynomials finden Sie in Help Center und MATLAB Answers
Tags
Quellenangaben
Inspiriert: rmse(true_values, prediction)
Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.1.0.0 | Updated description and code for better readability and
|
||
| 1.0.0.0 | By popular demand: using sum(data(:)) instead of sum(sum(data)). Thanks! |
