- sherpa.astro.ui.set_iter_method_opt(optname, val)
Set an option for the iterative-fitting scheme.
sherpa.utils.err.ArgumentErr – If the
optnameargument is not recognized.
The supported fields for the
The number of points adjacent to a rejected point that should also be removed. A value of
0means that only the discrepant point is removed whereas a value of
1means that the two adjacent points (one lower and one higher) will also be removed.
The rejection criterion in units of sigma, for data points above the model (it must be >= 0).
The rejection criterion in units of sigma, for data points below the model (it must be >= 0).
The maximum number of iterations to perform. If this value is
0then the fit will run until it has converged.
Reject any points that are more than 5 sigma away from the best fit model and re-fit.
>>> set_iter_method('sigmarej') >>> set_iter_method_opt('lrej', 5) >>> set_iter_method_opt('hrej', 5) >>> fit()