LogParabola#

class ctao_cr_spectra.spectral.LogParabola(normalization, a, b, e_ref=<Quantity 1. TeV>)#

Bases: object

A log parabola flux parameterization.

\[\Phi(E, \Phi_0, \alpha, \beta, E_\text{ref}) = \Phi_0 \left( \frac{E}{E_\text{ref}} \right)^{\alpha + \beta \cdot \log_{10}(E / E_\text{ref})}\]
Attributes:
normalization: astropy.units.Quantity[flux]

\(\Phi_0\),

a: float

\(\alpha\)

b: float

\(\beta\)

e_ref: astropy.units.Quantity[energy]

\(E_\text{ref}\)

Methods Summary

__call__(energy)

Evaluate the flux at a given energy.

Methods Documentation

__call__(energy)#

Evaluate the flux at a given energy.

Parameters:
energyastropy.units.Quantity

The energy at which to evaluate the flux. Should be in units of energy.

Returns:
astropy.units.Quantity

The flux at the given energy.