power_law_energy_flux

gammapy.spectrum.powerlaw.power_law_energy_flux(I, g=2, e=1, e1=1, e2=10)[source]

Compute energy flux between e1 and e2 for a given integral flux.

The analytical solution for the powerlaw case is given by:

\[G(E_1, E_2) = I(\epsilon, \infty) \, \frac{1-\Gamma} {2-\Gamma} \, \frac{E_1^{2-\Gamma} - E_2^{2-\Gamma}}{\epsilon^{1-\Gamma}}\]
Parameters:

I : array_like

Integral flux in energy_min, energy_max band

g : array_like

Power law spectral index

e : array_like

Energy at above which the integral flux is given.

e1 : array_like

Energy band minimum

e2 : array_like

Energy band maximum