Prior#

class gammapy.modeling.models.Prior[source]#

Bases: ModelBase

Prior abstract base class. For now, see existing examples of type of priors:

Attributes Summary

default_parameters

parameters

Prior parameters as a PriorParameters object.

weight

Weight multiplied to the prior when evaluated.

Methods Summary

__call__(value)

Call evaluate method.

from_dict(data, **kwargs)

Get prior parameters from dictionary.

to_dict([full_output])

Create dictionary for YAML serialisation.

Attributes Documentation

default_parameters = <gammapy.modeling.parameter.Parameters object>#
parameters#

Prior parameters as a PriorParameters object.

weight#

Weight multiplied to the prior when evaluated.

Methods Documentation

__call__(value)[source]#

Call evaluate method.

classmethod from_dict(data, **kwargs)[source]#

Get prior parameters from dictionary.

to_dict(full_output=False)[source]#

Create dictionary for YAML serialisation.

__init__(**kwargs)[source]#
classmethod __new__(*args, **kwargs)#