Apply Voigt line-broadening to match a reference spectrum.
match_lineshape(
mrs_data,
ref,
xlim,
init_lb = 0.2,
init_lg = 0.5,
min_lb = 0,
max_lb = Inf,
min_lg = 0,
max_lg = 1
)
a list containing the matched mrs_data, difference spectra and optimisation results.
data to be broadened, note the linewidth of this spectrum must be narrower than the ref spectrum.
reference data to match.
spectral region to match, eg c(5.2, 4.1) could be used to match two water resonances.
initial value for the amount of line-broadening to apply (Hz).
initial value for the Lorentz-Gauss lineshape parameter.
minimum value for the amount of line-broadening to apply (Hz).
maximum value for the amount of line-broadening to apply (Hz).
minimum value for the Lorentz-Gauss lineshape parameter.
maximum value for the Lorentz-Gauss lineshape parameter.