Parameter

class gammapy.utils.modeling.Parameter(name, value, unit='', parmin=None, parmax=None, frozen=False)[source]

Bases: object

Class representing model parameters.

Parameters:

name : str

Name of the parameter.

value : float

Value of the parameter.

unit : str

Unit of the parameter.

parmin : float

Parameter value minimum. Used as minimum boundary value in a model fit.

parmax : float

Parameter value maximum. Used as minimum boundary value in a model fit.

frozen : bool

Whether the parameter is free to be varied in a model fit.

Attributes Summary

quantity

Methods Summary

from_dict(data)
from_dict_gammacat(data)
from_dict_xml(data)
to_dict()
to_sherpa([modelname]) Convert to sherpa parameter
to_xml()

Attributes Documentation

quantity

Methods Documentation

classmethod from_dict(data)[source]
classmethod from_dict_gammacat(data)[source]
classmethod from_dict_xml(data)[source]
to_dict()[source]
to_sherpa(modelname='Default')[source]

Convert to sherpa parameter

to_xml()[source]