modeling - Models and fitting¶
Introduction¶
gammapy.modeling
contains all the functionality related to modeling and fitting
data. This includes spectral, spatial and temporal model classes, as well as the fit
and parameter API. An overview of all the available models can be found in the Model gallery.
In general the models are grouped into the following categories:
SpectralModel
: models to describe spectral shapes of sourcesSpatialModel
: models to describe spatial shapes (morphologies) of sourcesTemporalModel
: models to describe temporal flux evolution of sources, such as light and phase curvesSkyModel
andSkyDiffuseCube
: model to combine the spectral and spatial model components
The models follow a naming scheme which contains the category as a suffix to the class name.
Reference/API¶
gammapy.modeling Package¶
Models and fitting.
Functions¶
|
Corner plot for each parameter explored by the walkers. |
|
Plot the trace of walkers for every steps |
|
Run the MCMC sampler. |
|
Uniform prior distribution. |
gammapy.modeling.models Package¶
Built-in models in Gammapy.
Functions¶
|
Create a Crab nebula reference spectral model. |
|
Cosmic a cosmic ray spectral model at Earth. |
Classes¶
|
Sky model base class |
|
Sky model collection. |
|
Sky model component. |
|
Cube sky map template model (3D). |
|
Background model. |
|
Gamma-ray absorption models. |
|
Spatial model base class. |
|
Spectral model base class. |
|
Temporal model base class. |
|
Spatially constant (isotropic) spatial model. |
|
Spatial sky map template model (2D). |
|
Constant disk model. |
|
Two-dimensional Gaussian model. |
|
Point Source. |
|
Shell model. |
|
Constant model. |
|
Arithmetic combination of two spectral models. |
|
Spectral power-law model. |
|
Spectral power-law model with integral as amplitude parameter. |
|
Spectral smooth broken power-law model. |
|
Spectral exponential cutoff power-law model. |
|
Spectral exponential cutoff power-law model used for 3FGL. |
|
Spectral super exponential cutoff power-law model used for 3FGL. |
|
Spectral super exponential cutoff power-law model used for 4FGL. |
|
Spectral log parabola model. |
|
A model generated from a table of energy and value arrays. |
|
Gaussian spectral model. |
|
Spectral model with EBL absorption. |
|
A wrapper for Naima models. |
|
Wrapper to scale another spectral model by a norm factor. |
|
Constant temporal model. |
|
Temporal phase curve model. |
|
Temporal light curve model. |
Variables¶
Built-in spatial models. |
|
Built-in temporal models. |
|
Built-in spectral models. |