Distance Measure

This function allows to measure the distance between a real series and a predicted or estimated one.
220 téléchargements
Mise à jour 9 juin 2015

Afficher la licence

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

Citation pour cette source

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

Compatibilité avec les versions de MATLAB
Créé avec R2015a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Conditional Mean Models dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0