ParameterList¶
-
class
gammapy.utils.modeling.
ParameterList
(parameters, covariance=None)[source]¶ Bases:
object
List of
Parameters
Holds covariance matrix
Parameters: parameters : list of
Parameter
List of parameters
covariance :
ndarray
Parameters covariance matrix. Order of values as specified by
parameters
.Attributes Summary
free
Return list of free parameters names. frozen
Return list of frozen parameters names. names
List of parameter names Methods Summary
covariance_to_table
()Serialize parameter covariance into Table
error
(parname)Return error on a given parameter from_dict
(val)from_list_of_dict_gammacat
(data)from_list_of_dict_xml
(data)set_parameter_covariance
(covariance, covar_axis)Set full correlated parameters errors. set_parameter_errors
(errors)Set uncorrelated parameters errors. to_dict
()to_list_of_dict
()to_table
()Serialize parameter list into Table
to_xml
()Attributes Documentation
-
free
¶ Return list of free parameters names.
-
frozen
¶ Return list of frozen parameters names.
-
names
¶ List of parameter names
Methods Documentation
-
set_parameter_covariance
(covariance, covar_axis)[source]¶ Set full correlated parameters errors.
Parameters: covariance : array-like
Covariance matrix
covar_axis : list
List of strings defining the parameter order in covariance
-