swfunc.pvoigt#
Syntax#
y = func.pvoigt(x,p)
Description#
y = func.pvoigt(x,p) calculates the \(y\) values for a pseudovoigt
function evaluated at \(x\) and with parameters defined in p. The
Gaussian and Lorentzian functions are normalized to amplitude 1 before
the mixing.
Input Arguments#
xCoordinate vector where the function will be evaluated.
pParameter vector with the following elements
p=[A x0 wG wL mu]where:Aamplitude of the signal,x0center of the peak,wGFWHM value of the Gaussian, has to be positive,wLFWHM value of the Lorentzian, has to be positive,mumixing constant,mu=1for pure Lorenzian,mu=0for pure Gaussian, the value has to be within the \((0,1)\) range.
See Also#
swfunc.gaussfwhm | swfunc.lorfwhm | swfunc.voigtfwhm
*[FWHM]: Full Width at Half Maximum