LC_fit: Linear combination fitting function

Description Usage Arguments Examples

Description

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

Usage

1
2
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)

Example output

      AlPO4     FePO4     HydAp        IHP        R.fac
1 0.2319872 0.3776037 0.3534028 0.03700625 0.0001531837

LCF documentation built on May 2, 2019, 6:08 a.m.

Related to LC_fit in LCF...