baseline_optimizer class - nthallen/icosfit GitHub Wiki
baseline_optimizer class
The baseline_optimizer class is one customization of the general purpose icosfit_optimizer class. An understanding of the basics of icosfit_optimizer is a prerequisite for working with baseline_optimizer.
Features:
- Create new baseline configurations and compare results
- Analyze scaling and rescale baseline parameters
- Analyze baseline etalons and add etalons to the baseline
%%
OptB6 = baseline_optimizer( ...
'mnemonic', 'OptB6', 'save_var', 'OptB6', ...
'cfg_ref', 'icosfit.R1ss.9l', ...
'PTEFile', 'PTE_nu0.txt', ...
'nscans', 50 ...
);
%%
OptB6.new_polynomial(5);
The first section creates the OptB6 baseline_optimizer object. The second creates
a new baseline file with a 4th order polynomial baseline (5 parameters), then runs
icosfit using that baseline file. The icosfit configuration file specified by the
cfg_ref
parameter is used as a template with specific parameters altered.
BaselineFile
is implicitly altered (since this is baseline_optimizer
), but
PTEFile
is explicitly altered in the first section's setup.
The nscans
parameter selects a set of non-contiguous scans from the cfg_ref
file's ScanNumRange
for the test case. This is useful when environmental
changes may have caused significant changes in the baseline throughout the run.
After the first fitting run is completed, an icosfit_optimizer
GUI appears
to illustrate the fit results. Many operations can be accomplished using
the GUI. The key operations are:
- Analyze Parameter Scaling
- Rescale Baseline Parameters
- Analyze Baseline Etalons
- Add a Baseline Etalon