View source: R/xrd.get.PeakStats.R
xrd.get.PeakStats | R Documentation |
Given an XRD peak, a Gaussian fit at the provided location peakPos
a Gaussian fit is made to find the exact location, width, and background.
xrd.get.PeakStats(
TwoTheta,
Intensity = NULL,
peakPos,
Try.Sigma = c(0.2, 0.1, 0.05, 0.3)
)
TwoTheta |
vector of two theta angles from xrd spectrum. |
Intensity |
|
peakPos |
approximate 2Theta angle of peak position. |
Try.Sigma |
vector with peak widths used to start fitting. |
background, amplitude, position, width + 4 std. errors from peak fit
Thomas Gredig
filename = xrd.getSampleFiles(fileExt='asc')
d = xrd.import(filename)
xrd.get.PeakStats(d$TwoTheta, d$I, 38.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.