AHELP for CIAO 4.3 Sherpa v1 | get_num_par |
Context: modeling |
Synopsis
Returns the number of parameters (total, frozen, or thawed) in a model.
Syntax
get_num_par( [id] ) get_num_par_frozen( [id] ) get_num_par_thawed( [id] )
Description
- id - the id of the dataset to use; if not given, uses the default dataset id (id=1 by default, see "ahelp get_default_id")
get_num_par
The get_num_par command returns the total number of parameters (frozen and thawed) in the model assigned to the dataset. If the model is a combination of several different model components, the number returned is the sum of the number of parameters of each model component (both frozen and thawed parameters are included).
get_num_par_frozen
The get_num_par_frozen command returns the number of frozen parameters in the model assigned to the dataset; see "ahelp freeze" for information on freezing parameters.
get_num_par_thawed
The get_num_par_thawed command returns the number of thawed parameters in the model assigned to the dataset; see "ahelp thaw" for information on thawing parameters.
Example 1
sherpa> get_num_par("src") 12
There are 12 parameters in the model for dataset "src".
Example 2
sherpa> get_num_par_frozen("src") 2
There are 2 frozen parameters in the model for dataset "src".
Example 3
sherpa> get_num_par_thawed("src") 10
There are 10 thawed parameters in the model for dataset "src".
Bugs
See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.
See Also
- confidence
- get_conf, get_covar, get_int_proj, get_int_unc, get_proj, get_reg_proj, get_reg_unc
- contrib
- get_chart_spectrum
- data
- get_areascal, get_arf, get_arf_plot, get_axes, get_backscal, get_bkg, get_bkg_plot, get_bkg_scale, get_coord, get_counts, get_data, get_data_plot, get_dep, get_dims, get_error, get_exposure, get_grouping, get_indep, get_quality, get_rmf, get_specresp, get_staterror, get_syserror
- filtering
- get_filter
- fitting
- calc_stat_info, get_fit, get_stat_info
- info
- get_default_id, list_model_ids, list_stats, show_bkg_model, show_bkg_source
- methods
- get_iter_method_name, get_iter_method_opt, get_method
- modeling
- add_model, add_user_pars, clean, create_model_component, delete_bkg_model, delete_model, delete_model_component, get_model, get_model_autoassign_func, get_model_component, get_model_component_image, get_model_component_plot, get_model_plot, get_order_plot, get_par, get_pileup_model, get_response, get_source, get_source_component_image, get_source_component_plot, image_model, image_model_component, image_source, image_source_component, integrate, link, load_table_model, load_user_model, reset, save_model, save_source, set_bkg_model, set_full_model, set_model_autoassign_func, set_pileup_model, set_source, set_xsabund, set_xscosmo, set_xsxsect, set_xsxset
- plotting
- get_split_plot, plot_model, plot_model_component, plot_source, plot_source_component
- psfs
- delete_psf, get_kernel, get_psf, load_conv
- saving
- save_delchi, save_resid
- statistics
- get_chisqr_plot, get_delchi_plot, get_stat
- utilities
- calc_chisqr, calc_energy_flux, calc_model_sum, calc_photon_flux, calc_source_sum, calc_stat, eqwidth, get_analysis, get_rate
- visualization
- contour_model, contour_ratio, contour_resid, get_ratio, get_resid, image_getregion