fc_construct_acceptance_intervals

gammapy.stats.fc_construct_acceptance_intervals(distribution_dict, bins, alpha)[source]

Convenience function that calculates the PDF for the user.

For more information see documentation.

Parameters
distribution_dictdict

Keys are mu values and value is an array-like list of x values

binsarray-like

The bins the x distribution will have

alphafloat

Desired confidence level

Returns
acceptance_intervalsndarray

Acceptance intervals (1 means inside, 0 means outside)