ParameterScaleMatrix
- class sherpa.sim.sample.ParameterScaleMatrix[source] [edit on github]
Bases:
ParameterScaleCorrelated errors for the parameters.
Attributes Summary
Methods Summary
get_scales(fit[, myscales])Return the samples.
Attributes Documentation
Methods Documentation
- get_scales(fit: Fit, myscales: ndarray | None = None) ndarray[source] [edit on github]
Return the samples.
- Parameters:
fit (sherpa.fit.Fit instance) – This defines the thawed parameters that are used to generate the samples, along with any possible error analysis.
myscales (numpy array or None, optional) – The scales to use: the two-dimensional covariance matrix for the parameters. If None then they are calculated from the fit, using the object’s sigma attribute to scale the results.
- Returns:
scales – Two-dimensional square array of side npar, where npar is the number of free parameters in the fit. The values are the covariance matrix for the free parameters, scaled by the sigma value (or the input values if myscales is not None).
- Return type:
numpy array