Fit quality assessment criteria for curve fitting.
This module provides functions to evaluate the quality of nonlinear curve fits using statistically robust metrics like R² and NRMSE.
Evaluate fit quality using R² and NRMSE metrics.
This criterion evaluates both how well the model explains variance (R²) and how small the errors are relative to the data range (NRMSE).
Parameters:
Input x values (used for context, not in calculation)
Observed y values
Predicted y values from the fitted model
Minimum R² value for acceptable fit. Default 0.7
Maximum NRMSE (normalized RMSE) for acceptable fit.
Returns:
True if fit quality is GOOD (passes both criteria), False if POOR Notes: