calc_total_error

sherpa.utils.calc_total_error(staterror=None, syserror=None)[source] [edit on github]

Add statistical and systematic errors in quadrature.

Parameters
  • staterror (array, optional) – The statistical error, or None.

  • syserror (array, optional) – The systematic error, or None.

Returns

error – The errors, added in quadrature. If both staterror and syserror are None then the return value is None.

Return type

array or None