ParameterScaleVector

class sherpa.sim.sample.ParameterScaleVector[source] [edit on github]

Bases: ParameterScale

Uncorrelated errors for the parameters.

Attributes Summary

sigma

Methods Summary

get_scales(fit[, myscales])

Return the samples.

Attributes Documentation

sigma: float = 1

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: a one-dimensional array of the standard deviation for each parameter (so there is no correlation between the parameters). If None then they are calculated from the fit, using the object’s sigma attribute to scale the results.

Returns:

scales – One-dimensional array with npar elements, where npar is the number of free parameters in the fit. The values are the standard deviations for the free parameters, scaled by the sigma value (or the input values if myscales is not None).

Return type:

numpy array