Learn R Programming

spant (version 3.6.0)

match_lineshape: Apply Voigt line-broadening to match a reference spectrum.

Description

Apply Voigt line-broadening to match a reference spectrum.

Usage

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
)

Value

a list containing the matched mrs_data, difference spectra and optimisation results.

Arguments

mrs_data

data to be broadened, note the linewidth of this spectrum must be narrower than the ref spectrum.

ref

reference data to match.

xlim

spectral region to match, eg c(5.2, 4.1) could be used to match two water resonances.

init_lb

initial value for the amount of line-broadening to apply (Hz).

init_lg

initial value for the Lorentz-Gauss lineshape parameter.

min_lb

minimum value for the amount of line-broadening to apply (Hz).

max_lb

maximum value for the amount of line-broadening to apply (Hz).

min_lg

minimum value for the Lorentz-Gauss lineshape parameter.

max_lg

maximum value for the Lorentz-Gauss lineshape parameter.