y = bilorz(p, x, [y]) : Bi-Lorentzian iFunc/bilorz Bi-Lorentzian 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). bilorz([ w1 w2]) creates a model with specified widths bilorz([ parameters ]) creates a model with specified model parameters input: p: Bi-Lorentzian 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=bilorz([1 0 1 1], -10:10); or plot(bilorz) Version: Nov. 27, 2018 See also iFunc, iFunc/fits, iFunc/plot (c) E.Farhi, ILL. License: EUPL.