pvpumpingsystem.function_models.correlation_stats

pvpumpingsystem.function_models.correlation_stats(funct_mod, params, data_input, data_to_fit)

Compute statistical figures to assess quality of curve fitting. In particular ‘root mean square error’, ‘normalized root mean square error’, ‘r_squared’, ‘adjusted_r_squared’ and size of data sample ‘nb_data’ are computed.

Returns:Keys are: -‘rmse’ -‘nrmse’ -‘r_squared’ -‘adjusted_r_squared’ -‘nb_data’
Return type:dict