Parameter¶
-
class
gammapy.utils.fitting.Parameter(name, factor, unit='', scale=1, min=nan, max=nan, frozen=False)[source]¶ Bases:
objectClass representing model parameters.
Parameters: name : str
Name
factor : float or
QuantityFactor
scale : float, optional
Scale (sometimes used in fitting)
unit :
Unitor str, optionalUnit
min : float, optional
Minimum (sometimes used in fitting)
max : float, optional
Maximum (sometimes used in fitting)
frozen : bool, optional
Frozen? (used in fitting)
Attributes Summary
factorFactor (float). frozenFrozen? (used in fitting) (bool). maxMaximum (float). minMinimum (float). nameName (str). quantityValue times unit ( Quantity).scaleScale (float). unitUnit ( Unit).valueValue = factor x scale (float). Methods Summary
autoscale([method])Autoscale the parameters. to_dict()Attributes Documentation
-
factor¶ Factor (float).
-
frozen¶ Frozen? (used in fitting) (bool).
-
max¶ Maximum (float).
-
min¶ Minimum (float).
-
name¶ Name (str).
-
scale¶ Scale (float).
-
value¶ Value = factor x scale (float).
Methods Documentation
-