get_error_estimates

sherpa.utils.get_error_estimates(x, sorted=False)[source] [edit on github]

Compute the median and (-1,+1) sigma values for the data.

Parameters:
xarray of numbers

The input values.

sortedbool, optional

If False, the default, then x is assumed to not be sorted.

Returns:
(median, lsig, usig)

The median, value that corresponds to -1 sigma, and value that is +1 sigma, for the input distribution.

Examples

>>> (m, l, h) = get_error_estimates(x)