get_projection_results

sherpa.astro.ui.get_projection_results()

Return the results of the last proj run.

Note

The conf function should be used instead of proj.

Returns:

results

Return type:

sherpa.fit.ErrorEstResults object

Raises:

sherpa.utils.err.SessionErr – If no proj call has been made.

See also

conf

Estimate parameter confidence intervals using the confidence method.

proj

Estimate confidence intervals for fit parameters.

get_proj_opt

Return one or all of the options for the projection method.

set_proj_opt

Set an option of the proj estimation object.

Notes

The fields of the object include:

datasets

A tuple of the data sets used in the analysis.

methodname

This will be ‘projection’.

iterfitname

The name of the iterated-fit method used, if any.

fitname

The name of the optimization method used.

statname

The name of the fit statistic used.

sigma

The sigma value used to calculate the confidence intervals.

percent

The percentage of the signal contained within the confidence intervals (calculated from the sigma value assuming a normal distribution).

parnames

A tuple of the parameter names included in the analysis.

parvals

A tuple of the best-fit parameter values, in the same order as parnames.

parmins

A tuple of the lower error bounds, in the same order as parnames.

parmaxes

A tuple of the upper error bounds, in the same order as parnames.

nfits

The 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