Last modified: December 2013

URL: http://cxc.harvard.edu/sherpa/ahelp/set_proj_opt.html
Jump to: Description · Examples · Bugs · See Also


AHELP for CIAO 4.11 Sherpa v1

set_proj_opt

Context: confidence

Synopsis

Set the options for projection

Syntax

set_proj_opt( name, val )

Description

The set_proj_opt command sets the options for the projection parameter estimation method (see "ahelp proj"). Users are encouraged to use the confidence command (see "ahelp conf") in place of projection for estimating confidence intervals for thawed fit parameters.

A list of the available options is returned by the get_proj_opt command ("ahelp get_proj_opt"), e.g

{'eps': 0.01,
 'fast': False,
 'max_rstat': 3,
 'maxfits': 5,
 'maxiters': 200,
 'numcores': 2,
 'remin': 0.01,
 'sigma': 1,
 'soft_limits': False,
 'tol': 0.20000000000000001}

Examples

Example 1

sherpa> set_proj_opt ("maxiters", 400)
sherpa> set_proj_opt ("sigma", 3)

Set the "maxiters" value to 400 and the "sigma" value to 3 for the next run of projection.

Example 2

sherpa> set_proj_opt('numcores', 4)
sherpa> proj(2, g.gamma)

Use the set_proj_opt command to specify that all four of the available cores on the system should be utilized when the proj command is run. Compute parameter limits for the model parameter g.gamma, which is assigned to dataset 2. The output is:

projection 1-sigma bounds:
   Param            Best-Fit  Lower Bound  Upper Bound
   -----            --------  -----------  -----------
   g.gamma          2.15147   -0.0800326    0.0800326

Bugs

See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.

See Also

confidence
conf, covariance, get_conf, get_covar, get_int_proj, get_int_unc, get_proj, get_reg_proj, get_reg_unc, int_proj, int_unc, projection, reg_proj, reg_unc, set_conf_opt, set_covar_opt
data
set_areascal, set_arf, set_backscal, set_bkg, set_coord, set_counts, set_data, set_exposure, set_grouping, set_quality, set_rmf, set_staterror, set_syserror
filtering
set_filter
methods
set_iter_method, set_iter_method_opt, set_method, set_method_opt
modeling
get_par, set_bkg_model, set_full_model, set_par, set_pileup_model, set_source, set_xsabund, set_xscosmo, set_xsxsect, set_xsxset
statistics
set_prior, set_sampler, set_sampler_opt, set_stat
utilities
set_analysis, set_default_id
visualization
image_setregion