invert4geom.merged_stats#
- merged_stats(results, plot=True, constraints_df=None, weight_by='residual', region=None)[source]#
Use the outputs of the function uncertainty.full_workflow_uncertainty_loop to calculate the cell-wise statistics of the inversion ensemble and plot the resulting mean and standard deviation of the ensemble.
- Parameters:
results (tuple[Any]) β list of lists of inversion results output from the function uncertainty.full_workflow_uncertainty_loop
plot (bool, optional) β show the resulting weighted mean and weighted standard deviation of the inversion ensemble, by default True
constraints_df (pandas.DataFrame, optional) β dataframe of constraint points to use for weighting the cell-wise statistics and for plotting , by default None
weight_by (str, optional) β choose to weight the cell-wise stats by either the RMS of the final residual gravity misfit of each inversion, or by the RMS between a priori topography measurements supplied by constraints_df and the inverted topography of each inversion, by default βresidualβ
region (tuple[float, float, float, float], optional) β region to calculate statistics within, by default None
- Returns:
Dataset with variables for the mean, standard deviation, weighted mean, and weighted standard deviation of the ensemble of inverted topographies.
- Return type: