View source: R/SupplementaryFunctions.R
FitTofDataSinglePeak | R Documentation |
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.
FitTofDataSinglePeak(PeakTofData, peakType, SpecNo = NULL)
PeakTofData |
List from the output of |
peakType |
Peak model to use. |
SpecNo |
Spectrum to use. If |
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.
A list with fitted parameters.
Other wrapper functions:
GetTofDataSinglePeak()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.