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_loopplot (
bool) β show the resulting weighted mean and weighted standard deviation of the inversion ensemble, by default Trueconstraints_df (
DataFrame|None) β dataframe of constraint points to use for weighting the cell-wise statistics and for plotting , by default Noneweight_by (
str) β 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] |None) β 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: