Home > Scripts > Models > dho.m

iFit/dho

PURPOSE ^

y = dho(p, x, [y]) : Damped harmonic oscillator

SYNOPSIS ^

function y=dho(varargin)

DESCRIPTION ^

 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: Mar. 22, 2017
 See also iData, iFunc/fits, iFunc/plot
 (c) E.Farhi, ILL. License: EUPL.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 22-Mar-2017 09:13:30 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1