FitTofDataSinglePeak: Wrapper function for FitSinglePeak().

View source: R/SupplementaryFunctions.R

FitTofDataSinglePeakR Documentation

Wrapper function for FitSinglePeak().

Description

FitTofDataSinglePeak is a wrapper for FitSinglePeak and also reports fitted resolving power, area and count rates. It takes the output of GetTofDataSinglePeak as input parameter and calculates a peak fit of the averaged spectrum or of a single spectrum.

Usage

FitTofDataSinglePeak(PeakTofData, peakType, SpecNo = NULL)

Arguments

PeakTofData

List from the output of GetTofDataSinglePeak.

peakType

Peak model to use.

SpecNo

Spectrum to use. If SpecNo=NULL (default) then the averaged spectrum is used, with SpecNo=i, the i-th spectrum from TofData is used.

Details

Peak types:

peak type index peak function symmetric baseline
-1 Gaussian through highest point and its neighbours yes no
0 Gaussian yes no
1 Lorentzian yes no
2 Pseudo-Voigt yes no
3 Gaussian yes yes
4 Lorentzian yes yes
5 Pseudo-Voigt yes yes
6 Gaussian no no
7 Lorentzian no no
8 Pseudo-Voigt no no
9 Gaussian no yes
10 Lorentzian no yes
11 Pseudo-Voigt no yes

Note: this function is not part of the TofDaq API, but is included in the package for convenience.

Value

A list with fitted parameters.

See Also

Other wrapper functions: GetTofDataSinglePeak()


pasturm/TofDaqR documentation built on March 29, 2024, 12:10 a.m.