xrd.get.AllPeaks: Finds all the peaks in a spectrum

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

xrd.get.AllPeaksR Documentation

Finds all the peaks in a spectrum

Description

Finds all the peaks in a spectrum

Usage

xrd.get.AllPeaks(
  TwoTheta,
  Intensity,
  min.Prominence = 5,
  Try.Sigma = c(0.2, 0.1, 0.05, 0.3),
  deltaTheta = 5,
  Range = c(0, 90),
  verbose = FALSE
)

Arguments

TwoTheta

angle

Intensity

intensity signal

min.Prominence

minimum prominence in percent (optional)

Try.Sigma

vector with peak widths used to start fitting (optional)

deltaTheta

search area around main peak

Range

range to search for peaks (optional)

verbose

logical, if TRUE outputs additional info

Value

vector with peak positions

Examples



filename = xrd.getSampleFiles()[1]
d = xrd.read.ASC(filename)
peak.list = xrd.get.AllPeaks(d$theta, d$I)



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