xrd.get.PeakStats: Fits a Gaussian Function to XRD data

View source: R/xrd.get.PeakStats.R

xrd.get.PeakStatsR Documentation

Fits a Gaussian Function to XRD data

Description

usually run after a peak is identified through its location

Usage

xrd.get.PeakStats(
  TwoTheta,
  Intensity,
  peakPos,
  Try.Sigma = c(0.2, 0.1, 0.05, 0.3),
  verbose = FALSE
)

Arguments

TwoTheta

2q angle

Intensity

XRD intensity

peakPos

specific 2q angle of peak position

Try.Sigma

vector with peak widths used to start fitting

verbose

logical, if TRUE output additional information

Value

background, amplitude, position, width + 4 std. errors

Author(s)

Thomas Gredig

Examples

filename = xrd.getSampleFiles(fileExt='asc')
d = xrd.read.ASC(filename)
xrd.get.PeakStats(d$theta, d$I, 38.2)


thomasgredig/rigakuXRD documentation built on Feb. 3, 2024, 10:49 p.m.