Skip to main content

functional_mae

Function functional_mae 

Source
pub fn functional_mae(
    y_true: &FdMatrix,
    y_pred: &FdMatrix,
    argvals: &[f64],
) -> Result<f64, FdarError>
Expand description

Functional Mean Absolute Error integrated over argvals.

Computes functional_mae = (1/n) * sum_i ∫ |y_true_i(t) - y_pred_i(t)| dt where the integral is approximated by Simpson’s rule over argvals.

§Errors