calc_total_error

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

Add statistical and systematic errors in quadrature.

Parameters:
staterrorarray, optional

The statistical error, or None.

syserrorarray, optional

The systematic error, or None.

Returns:
errorarray or None

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