cosmo_utils.utils.stats_funcs.sigma_calcs(data_arr, type_sigma='std', perc_arr=[68.0, 95.0, 99.7], return_mean_std=False)[source] [edit on github]

Calcualates the 1-, 2-, and 3-sigma ranges for data_arr


data_arr : numpy.ndarray, shape( param_dict[‘nrpbins’], param_dict[‘itern_tot’])

array of values, from which to calculate percentiles or St. Dev.

type_sigma : {‘perc’, ‘std’} string, optional (default = ‘std’)

Option for calculating either percentiles or standard deviations
  • ‘perc’: calculates percentiles
  • ‘std’ : uses standard deviations as 1-, 2-, and 3-sigmas

perc_arr : array_like, optional (default = [68., 95., 99.7])

Array of percentiles to calculate

return_mean_std : bool, optional (default = False)

Option for returning mean and St. Dev. along with sigma_dict