Learn R Programming

NMRphasing (version 1.0.7)

NLS: NLS

Description

Non-linear shrinkage

Usage

NLS(specdat, withBC = TRUE)

Value

A numeric vector of phase corrected absorption spectrum

Arguments

specdat

A complex number vector of observed frequency domain data.

withBC

A logical parameter that enables/disables baseline correction after baseline correction

Author

Aixiang Jiang

Details

This function is used to process phase error correction through non-linear shrinkage, followed by Polynomial baseline correction when necessary.

References

Liland KH, Almøy T, Mevik B (2010), Optimal Choice of Baseline Correction for Multivariate Calibration of Spectra, Applied Spectroscopy 64, pp. 1007-1016.

Examples

Run this code
data("fdat")
nls_phased1 <- NLS(fdat$frequency_domain)

Run the code above in your browser using DataLab