The function stops with an error if pred.x and obs.y have unequal lengths.
The following metrics are calculated:
$$APE = \sum |pred.x - obs.y|$$
Absolute prediction error (APE) is the sum of absolute differences.
$$MAE = \frac{1}{n} \sum |pred.x - obs.y|$$
Mean absolute error (MAE) expresses the average absolute deviation.
$$MAPE = \frac{100}{n} \sum \left| \frac{pred.x - obs.y}{obs.y} \right|$$
Mean absolute percentage error (MAPE) normalizes the error by observed values.
$$RMSE = \sqrt{\frac{1}{n} \sum (pred.x - obs.y)^2}$$
Root mean squared error (RMSE) penalizes larger deviations.
$$rRMSE1 = \frac{RMSE}{\bar{obs.y}} \times 100$$
Relative RMSE type 1 is the RMSE normalized by the mean observed value.
$$rRMSE2 = 100 \times \sqrt{\frac{1}{n} \sum \left(
\frac{pred.x - obs.y}{(pred.x + obs.y)/2} \right)^2}$$
Relative RMSE type 2 is symmetric and normalizes by the mean of each
predicted–observed pair.