fc_find_average_upper_limit

gammapy.stats.fc_find_average_upper_limit(x_bins, matrix, upper_limit, mu_bins, prob_limit=1e-05)[source]

Calculate the average upper limit for a confidence belt.

See also: Feldman and Cousins Confidence Intervals

Parameters
x_binsarray-like

Bins in x direction

matrixarray-like

A list of x PDFs for increasing values of mue (same as for fc_construct_acceptance_intervals_pdfs).

upper_limitarray-like

Feldman Cousins upper limit x-coordinates

mu_binsarray-like

The bins used in mue direction.

prob_limitfloat

Probability value at which x values are no longer considered for the average limit.

Returns
average_limitfloat

Average upper limit