bkg {powdR} | R Documentation |
Fit a background to XRPD data
Description
bkg
fits a background to X-Ray Powder Diffraction data
Usage
bkg(xrd, lambda, hwi, it, int)
Arguments
xrd |
an xy data frame of the data to fit a background to. First column is the 2theta scale, second column is count intensities |
lambda |
second derivative penalty for primary smoothing. Default = 0.5. |
hwi |
Half width of local windows. Default = 25. |
it |
Number of iterations in suppression loop. Default = 50. |
int |
Number of buckets to divide the data into. Default = |
Details
A wrapper for the baseline.fillPeaks
in the baseline
package.
Value
a powdRbkg object consisting of of 3 vectors
tth |
The 2theta axis of the measurement |
counts |
The count intensities of the measurement |
background |
The count intensities of the fitted background |
Examples
data(soils)
## Not run:
fit_bkg <- bkg(soils$granite)
plot(bkg)
## End(Not run)
[Package powdR version 1.3.0 Index]