SiFitPhd: Fits a (slightly modified) log-normal distribution to the...

View source: R/RcppExports.R

SiFitPhdR Documentation

Fits a (slightly modified) log-normal distribution to the histogram.

Description

SiFitPhd fits a (slightly modified) log-normal distribution to the histogram data.

Usage

SiFitPhd(intensity, counts)

Arguments

intensity

Vector of intensities (histogram x-axis data).

counts

Vector of counts (histogram y-axis data).

Details

The following equation with the parameters A, w, x0 and xc is fitted:
A/(\sqrt(2*pi)*w*(x-x0))*exp(-(log((x-x0)/xc)^2)/(2*w^2))

Value

A list with the FWHM of the distribution, the position of the fitted maximum and a vector with the values of the four fitting parameters.


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