fc_find_limit

gammapy.stats.fc_find_limit(x_value, x_values, y_values)[source]

Find the limit for a given x measurement.

See also: Feldman and Cousins Confidence Intervals

Parameters
x_valuefloat

The measured x value for which the upper limit is wanted.

x_valuesarray-like

The x coordinates of the confidence belt.

y_valuesarray-like

The y coordinates of the confidence belt.

Returns
limitfloat

The Feldman Cousins limit