y = dho(p, x, [y]) : Damped harmonic oscillator iFunc/dho Damped harmonic oscillator fitting function, including Bose factor. y=p(1)*p(3) *p(2)^2.*(1+1./(exp(abs(x)/p(5))-1))./((x.^2-p(2)^2).^2+(p(3)*x).^2) dho(energy) creates a model with a line at specified energy (centre) dho([ parameters ]) creates a model with specified model parameters Reference: B. Fak, B. Dorner / Physica B 234-236 (1997) 1107-1108 input: p: Damped harmonic oscillator model parameters (double) p = [ Amplitude Centre HalfWidth BackGround Temperature(in x units)] 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=dho([1 0 1 1], -10:10); or y=plot(dho); Version: Nov. 27, 2018 See also iData, iFunc/fits, iFunc/plot (c) E.Farhi, ILL. License: EUPL.