Covariance#
- class gammapy.modeling.Covariance(parameters, data=None)#
Bases:
object
Parameter covariance class
- Parameters
- parameters
Parameters
Parameter list
- data
ndarray
Covariance data array
- parameters
Attributes Summary
correlation
Correlation matrix (
numpy.ndarray
).data
Covariance data (
ndarray
)scipy_mvn
shape
Covariance shape
Methods Summary
from_factor_matrix
(parameters, matrix)Set covariance from factor covariance matrix.
from_stack
(covar_list)Stack sub-covariance matrices from list
get_subcovariance
(parameters)Get sub-covariance matrix
plot_correlation
([ax])Plot correlation matrix.
set_subcovariance
(covar)Set sub-covariance matrix
Attributes Documentation
Methods Documentation