make_stats

gammapy.stats.make_stats(signal, background, area_factor, weight_method='background', poisson_fluctuate=False, random_state='random-seed')[source]

Fill using some weight method for the exposure.

Parameters:
random_state : {int, ‘random-seed’, ‘global-rng’, RandomState}

Defines random number generator initialisation. Passed to get_random_state.

Returns:
stats : Stats

Statistics