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_dict : dict

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

bins : array-like

The bins the x distribution will have

alpha : float

Desired confidence level

Returns:

acceptance_intervals : ndarray

Acceptance intervals (1 means inside, 0 means outside)