Voigt Fitting

Aus Dpdak
Wechseln zu: Navigation, Suche

This plug-in fits the input data using "Voigt function" and outputs the result parameters.

Voigt function

f(x) = A * |n| * Lo(x) + (1 - |n|) * Ga( x))

where:

Ga(x) = 2 / H * sqrt(log(2) / pi) * exp(-4 * log(2) * ((x - x0) / H)*((x - x0) / H))

Lo(x) = 2 / (pi * H) / (1 + 4 *((x - x0) / H)*(x - x0) / H))

Function Parameters

  • H: Full width at half maximum (FWHM).
  • A: Area of the peak.
  • x0: Peak position.
  • n: The distribution part of Gauss and Lorentz in the Voigt function.

Parameters

  • Start Index: Start row number of the data to fit.
  • End Index: End row number of the data to fit.

Inputs

  • q: The q value array.
  • I: The array of intensity.

Outputs

  • k: The slope of background line.
  • d: The y-axis intercept of background line.
  • A: Area of the peak.
  • dist: The distribution part of Gauss and Lorentz in the Voigt function.
  • FWHM: Full width at half maximum of the peak.
  • q0: The peak position.
  • A_BGR: The area of the background.
  • I_q0: The maximum position.
  • q: The input q value array.
  • I: The input I value array
  • I_Fit: The fitted I value array.
  • I_Base_Line: The background line I value array.