power_law_flux

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

Compute differential flux for a given integral flux.

Parameters:

I : array_like

Integral flux in energy_min, energy_max band

g : array_like

Power law spectral index

e : array_like

Energy at which to compute the differential flux

e1 : array_like

Energy band minimum

e2 : array_like

Energy band maximum

Returns:

flux : numpy.array

Differential flux at energy.