xrd.get.PeakStats.Rd
usually run after a peak is identified through its location
xrd.get.PeakStats(
TwoTheta,
Intensity,
peakPos,
Try.Sigma = c(0.2, 0.1, 0.05, 0.3),
verbose = FALSE
)
2q angle
XRD intensity
specific 2q angle of peak position
vector with peak widths used to start fitting
logical, if TRUE
output additional information
background, amplitude, position, width + 4 std. errors
filename = xrd.getSampleFiles(fileExt='asc')
d = xrd.read.ASC(filename)
xrd.get.PeakStats(d$theta, d$I, 38.2)
#> [1] 8.898096e+02 4.221328e+02 3.821680e+01 2.343885e-01 6.937047e+00
#> [6] 9.346417e+00 5.068504e-03 7.370949e-03