power_law_compatibility

gammapy.spectrum.powerlaw.power_law_compatibility(par_low, par_high)[source]

Quantify spectral compatibility of power-law measurements in two energy bands.

Reference: 2008ApJ...679.1299F Equation (2)

Compute spectral compatibility parameters for the situation where two power laws were measured in a low and a high spectral energy band. par_low and par_high are the measured parameters, which must be lists in the following order: e, f, f_err, g, g_err where e is the pivot energy, f is the flux density and g the spectral index