Paczynski1990#

class gammapy.astro.population.Paczynski1990[source]#

Bases: Fittable1DModel

Radial distribution of the birth surface density of neutron stars.

\[f(r) = A r_{exp}^{-2} \exp \left(-\frac{r}{r_{exp}} \right)\]

Formula (2) in [1].

Parameters:
amplitudefloat

See formula.

r_expfloat

See formula.

References

Attributes Summary

amplitude

evolved

param_names

Names of the parameters that describe models of this type.

r_exp

Methods Summary

evaluate(r, amplitude, r_exp)

Evaluate model.

Attributes Documentation

amplitude#
evolved = False#
param_names = ('amplitude', 'r_exp')#

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.

r_exp#

Methods Documentation

static evaluate(r, amplitude, r_exp)[source]#

Evaluate model.

__init__(amplitude=1, r_exp=4.5, **kwargs)[source]#
classmethod __new__(*args, **kwargs)#