pseudovoigt function
Syntax
y = func.pvoigt(x,p)
Description
y = func.pvoigt(x,p) calculates the values for a pseudovoigt
function evaluated at and with parameters defined in p. The
Gaussian and Lorentzian functions are normalized to amplitude 1 before
the mixing.
Input Arguments
x- Coordinate vector where the function will be evaluated.
p- Parameter 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 range.