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)
sample
: The sample spectrumstandards
: The standards spectraLC.vals
: Values for ranges of linear combination fitting, with respect to the edge-stepfloat
: Set float parameters, defaults to NULLE.zero
: Set E0, defaults to NULLex.smaller
: Set value to exclude small portions (as portion of 1), defaults to NULLdata(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)
Useful links