Lorimer2006#

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

Bases: Fittable1DModel

Radial distribution of the surface density of pulsars in the galaxy.

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

Formula (10) in [1].

Parameters:
amplitudefloat

See model formula.

Bfloat

See model formula.

Cfloat

See model formula.

References

Attributes Summary

B

C

amplitude

evolved

param_names

Names of the parameters that describe models of this type.

Methods Summary

evaluate(r, amplitude, B, C)

Evaluate model.

Attributes Documentation

B#
C#
amplitude#
evolved = True#
param_names = ('amplitude', 'B', 'C')#

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.

Methods Documentation

static evaluate(r, amplitude, B, C)[source]#

Evaluate model.

__init__(amplitude=1, B=1.9, C=5.0, **kwargs)[source]#
classmethod __new__(*args, **kwargs)#