Distance Measure

This function allows to measure the distance between a real series and a predicted or estimated one.
220 Downloads
Aktualisiert 9. Jun 2015

Lizenz anzeigen

distmeasure Distance Measure
err = distmeasure(Y,Yf,type) gives the distance between the real series Y
and the predicted or estimated one Yf. Y and Yf must be two column or row
vectors with the same lenght and size. They must contain only real
values.
The kind of distance is chosen through the input string type.

Y = Real series

Yf = Estimated series

type = Type of distance measure, namely: Mean Absolute Error (MAE), Mean
Absolute Percentage Error (MAPE), Root Mean Square Error (RMSE), Root
Mean Square Percentage Error (RMSPE), Mean Error (ME), Mean Percentage
Error (MPE), Mean Square Error (MSE), Mean Square Percentage Error
(MSPE).

Sample usage:

Y = rand(1,1000);
Yf = rand(1,1000);

err = distmeasure(Y,Yf,'RMSE')

Zitieren als

Flavio Prattico (2024). Distance Measure (https://www.mathworks.com/matlabcentral/fileexchange/51126-distance-measure), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2015a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Conditional Mean Models finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0