# Welcome to Astromodels’s documentation!

## About astromodels

Astromodels is a very flexible framework to define models for likelihood or Bayesian analysis of astrophysical data.

Even though it has been designed having in mind analysis in the spectral domain, it can be used also as a toolbox containing functions of any variable.

Astromodels is *not* a modeling package, it only gives you the tools to build a
model as complex as you need. You then need a separate package (such as
3ML <https://github.com/threeML/threeML>) to fit that model to the data.

Some of the features which distinguish astromodels from other similar packages are:

a model can contain an arbitrary number of sources at different positions in the sky

parameters can be linked through any function (not only identity)

parameters can vary with

*auxiliary variables*such as time. For example, you can build a model where some parameters vary with time, and you can fit the parameters of the function which describe this variability. Similary you can build models where parameters vary with the phase of a pulsar, and so on.models can be saved in and loaded from YAML file (a human-readable format)

physical units are fully supported in input, but they are handled so that they don’t slow down the actual computation of the models.

Astromodels has been designed with performance as priority, and is considerably faster than other python-based solutions for the same problem, such as astropy.modeling and the modeling part of sherpa.

# Contents:

- Quick start
- Configuration
- Available Functions
- Included 1D Functions
- Blackbody
- ModifiedBlackbody
- NonDissipativePhotosphere
- NonDissipativePhotosphere_Deep
- StepFunction
- StepFunctionUpper
- Sin
- DiracDelta
- Log_parabola
- Exponential_cutoff
- PhAbs
- TbAbs
- WAbs
- EBLattenuation
- ZDust
- Constant
- Line
- Quadratic
- Cubic
- Quartic
- Powerlaw
- Powerlaw_flux
- Powerlaw_Eflux
- Cutoff_powerlaw
- Cutoff_powerlaw_Ep
- Inverse_cutoff_powerlaw
- Super_cutoff_powerlaw
- SmoothlyBrokenPowerLaw
- Broken_powerlaw
- Band
- Band_grbm
- Band_Calderone
- DoubleSmoothlyBrokenPowerlaw
- DMFitFunction
- DMSpectra

- Included 2D Functions
- Included Prior Functions

- Included 1D Functions
- Functions tutorial
- Point sources
- Extended source tutorial
- Multi-component sources
- Model tutorial
- Priors for Bayesian analysis
- Additional features for scripts and applications
- API
- astromodels
- astromodels package
- Release Notes