combine_stats

gammapy.stats.combine_stats(stats_1, stats_2, weight_method='none')[source]

Combine using some weight method for the exposure.

Parameters:
stats_1 : Stats

Observation 1

stats_2 : Stats

Observation 2

weight_method : {‘none’, ‘background’, ‘n_off’}

Observation weighting method.

Returns:
stats : Stats

Combined Observation 1 and 2