Distance Measure

This function allows to measure the distance between a real series and a predicted or estimated one.
220 download
Aggiornato 9 giu 2015

Visualizza la licenza

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')

Cita come

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

Compatibilità della release di MATLAB
Creato con R2015a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Conditional Mean Models in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0