sensortoolkit.calculate._cv.cv
- cv(df_list, deploy_dict, param=None, return_deploy_dict=True)[source]
Compute CV for set of sensor dataframes and indicated parameter.
Loops over the unique deployment groups and constructs a dataframe of concurrently recorded sensor measurements which is passed to CV_Calculator to determine CV.
- Parameters
df_list (list) – List of sensor dataframes
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
isTrue
, returndeploy_dict
with updated precision statistics, else returnCV
(float).