power_law_evaluate

gammapy.spectrum.powerlaw.power_law_evaluate(energy, norm, gamma, energy_ref)[source]

Differential flux at a given energy.

f(energy)=N(E/E0)Γ

with norm N, energy E, reference energy E0 and spectral index Γ.

Parameters:

energy : array_like

Energy at which to compute the differential flux

gamma : array_like

Power law spectral index