get_proj_results
- sherpa.astro.ui.get_proj_results()
Return the results of the last
projrun.- Returns:
results
- Return type:
sherpa.fit.ErrorEstResults object
- Raises:
sherpa.utils.err.SessionErr – If no
projcall has been made.
See also
confEstimate parameter confidence intervals using the confidence method.
projEstimate confidence intervals for fit parameters.
get_proj_optReturn one or all of the options for the projection method.
set_proj_optSet an option of the proj estimation object.
Notes
The fields of the object include:
datasetsA tuple of the data sets used in the analysis.
methodnameThis will be ‘projection’.
iterfitnameThe name of the iterated-fit method used, if any.
fitnameThe name of the optimization method used.
statnameThe name of the fit statistic used.
sigmaThe sigma value used to calculate the confidence intervals.
percentThe percentage of the signal contained within the confidence intervals (calculated from the
sigmavalue assuming a normal distribution).parnamesA tuple of the parameter names included in the analysis.
parvalsA tuple of the best-fit parameter values, in the same order as
parnames.parminsA tuple of the lower error bounds, in the same order as
parnames.parmaxesA tuple of the upper error bounds, in the same order as
parnames.nfitsThe number of model evaluations.
Examples
>>> res = get_proj_results() >>> print(res) datasets = ('src',) methodname = projection iterfitname = none fitname = levmar statname = chi2gehrels sigma = 1 percent = 68.2689492137 parnames = ('bgnd.c0',) parvals = (9.1958148476800918,) parmins = (-2.0765029551804268,) parmaxes = (2.0765029551935186,) nfits = 0