


y = bigauss(p, x, [y]) : Bi-Gaussian
iFunc/bigauss Bi-Gaussian fitting function
y = p(1)*exp(-0.5*((x-p(2))/s).^2) + p(5);
where s = p(3) for x < p(2) and s = p(4) for x > p(2).
bigauss([ w1 w2]) creates a model with specified widths
bigauss([ parameters ]) creates a model with specified model parameters
input: p: Bi-Gaussian model parameters (double)
p = [ Amplitude Centre HalfWidth1 HalfWidth2 BackGround ]
or 'guess'
x: axis (double)
y: when values are given and p='guess', a guess of the parameters is performed (double)
output: y: model value
ex: y=bigauss([1 0 1 1], -10:10); or plot(bigauss)
Ref: T. S. Buys, K. De Clerk, Bi-Gaussian fitting of skewed peaks, Anal. Chem., 1972, 44 (7), pp 1273–1275
Version: Aug. 22, 2017
See also iFunc, iFunc/fits, iFunc/plot
(c) E.Farhi, ILL. License: EUPL.