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

covariance_to_table()[source]

Serialize parameter covariance into Table

error(parname)[source]

Return error on a given parameter

Parameters:

parname : str

Parameter

classmethod from_dict(val)[source]
classmethod from_list_of_dict_gammacat(data)[source]
classmethod from_list_of_dict_xml(data)[source]
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

set_parameter_errors(errors)[source]

Set uncorrelated parameters errors.

Parameters:

errors : dict of Quantity

Dict of parameter errors.

to_dict()[source]
to_list_of_dict()[source]
to_table()[source]

Serialize parameter list into Table

to_xml()[source]