pub fn functional_mape(
y_true: &FdMatrix,
y_pred: &FdMatrix,
argvals: &[f64],
) -> Result<f64, FdarError>Expand description
Functional Mean Absolute Percentage Error integrated over argvals.
Computes functional_mape = (1/n) * sum_i ∫ |y_true_i(t) - y_pred_i(t)| / |y_true_i(t)| dt
where the integral is approximated by Simpson’s rule over argvals.
§Errors
FdarError::InvalidDimensionif shapes are inconsistent.FdarError::InvalidParameterif any value ofy_trueis near zero (|y_true| < NUMERICAL_EPS), which would cause division by zero.