sensortoolkit.calculate._rmse.rmse

rmse(df_list, ref_df, deploy_dict, param=None, return_deploy_dict=True)[source]

Compute the root mean square error for concurrent sensor measurements in each testing deployment groups.

Loops over the unique deployment groups and computes RMSE for each group of concurrently collocated and recording sensors.

Parameters
  • df_list (list) – List of sensor dataframes (either 1-hour or 24-hour averages)

  • ref_df (pandas dataframe) – dataframe with FRM/FEM values (either 1-hour or 24-hour averages)

  • deploy_dict (dict) – A dictionary containing descriptive statistics and textual information about the deployment (testing agency, site, time period, etc.), sensors tested, and site conditions during the evaluation.

  • param (str) – Parameter name to evaluate

  • return_deploy_dict (bool) – If true, return modified deployment dictionary with precision statisitcs (CV, standard deviation, N concurrent datapoints across all sensors).

Returns

If return_deploy_dict is True, return deploy_dict with updated error statistics, else return RMSE (float)