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
  • x (array of numbers) – The input values.

  • sorted (bool, optional) – If False, the default, then x is assumed to not be sorted.

Returns

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

Return type

(median, lsig, usig)

Examples

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