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 / E_0) ^ - \Gamma\]with norm
N
, energyE
, reference energyE0
and spectral index \(\Gamma\).Parameters: energy : array_like
Energy at which to compute the differential flux
gamma : array_like
Power law spectral index