spex_fit_start_method

There are two fit parameter initialization methods:

SPEX_FIT_FIRSTINT_METHOD - sets parameters for first interval in the series of intervals selected for fitting.
The following parameters are set: fit_comp_params, fit_comp_minima, fit_comp_maxima, fit_comp_free_mask, fit_comp_spectrum, fit_comp_model
Choices are:
default - Use program defaults for each function component
current - Leave all parameters at their current setting
fn - Use parameters from interval n. Use final fitted values from interval n for fit_comp_params
sn - Use parameters from interval n. Use starting values from interval n for fit_comp_params


SPEX_FIT_START_METHOD - sets parameters for subsequent intervals in the series of intervals selected for fitting.
The following parameters are set: same list as above, as well as erange, uncertainty, # iterations (except for default method)
Choices are:
default - Use program defaults for each function component
previous_int - Use values most recently fit interval. Use final fitted value for fit_comp_params
previous_start - Use values most recently fit interval. Use starting value for fit_comp_params
previous_iter - Use values from earlier fit on each interval. Use final fitted values from the previous iteration for fit_comp_params. If no earlier fit done, leave all parameters at current settings.

Note: If spex_fit_start_method is set to previous_iter, it applies to the first interval as well, and spex_fit_firstint_method is ignored.