Exponential#
- class gammapy.astro.population.Exponential[source]#
Bases:
Fittable1DModel
Exponential distribution.
\[f(z) = A \exp \left(- \frac{|z|}{z_0} \right)\]Usually used for height distribution above the Galactic plane, with 0.05 kpc as a commonly used birth height distribution.
- Parameters:
- amplitudefloat
See model formula.
- z_0float
Scale height of the distribution.
See also
Attributes Summary
Names of the parameters that describe models of this type.
Methods Summary
evaluate
(z, amplitude, z_0)Evaluate model.
Attributes Documentation
- amplitude#
- evolved = False#
- param_names = ('amplitude', 'z_0')#
Names of the parameters that describe models of this type.
The parameters in this tuple are in the same order they should be passed in when initializing a model of a specific type. Some types of models, such as polynomial models, have a different number of parameters depending on some other property of the model, such as the degree.
When defining a custom model class the value of this attribute is automatically set by the
Parameter
attributes defined in the class body.
- z_0#
Methods Documentation
- classmethod __new__(*args, **kwargs)#