LC_fit function

Linear combination fitting function

Linear combination fitting function

This function performs the LC fitting of the input sample/samples. It outputs the fitting results with the R-Factors as fitting statistics.

LC_fit(sample, standards, LC.vals, float = NULL, E.zero = NULL, ex.smaller = NULL)

Arguments

  • sample: The sample spectrum
  • standards: The standards spectra
  • LC.vals: Values for ranges of linear combination fitting, with respect to the edge-step
  • float: Set float parameters, defaults to NULL
  • E.zero: Set E0, defaults to NULL
  • ex.smaller: Set value to exclude small portions (as portion of 1), defaults to NULL

Examples

data(stdmix) corr.spec.standards <- initial_load(specdat[1:4], corr.norm = c(-36, -15, 37, 58)) corr.spec.samples <- initial_load(specdat[5:8], corr.norm = c(-36, -15, 37, 58)) fit.standards <- std_df(sample = corr.spec.samples[[1]], all.standards = corr.spec.standards) fit.result <- LC_fit(sample = corr.spec.samples[[1]], standards = fit.standards, LC.vals = c(-14, 46)) print(fit.result)
  • Maintainer: Florian Werner
  • License: GPL-3
  • Last published: 2017-11-22

Useful links