Distance Measure

版本 1.0.0.0 (1.6 KB) 作者: Flavio Prattico
This function allows to measure the distance between a real series and a predicted or estimated one.
220.0 次下载
更新时间 2015/6/9

查看许可证

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

引用格式

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

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

Community Treasure Hunt

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

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