Home > Scripts > Models > bigauss.m

iFit/bigauss

PURPOSE ^

y = bigauss(p, x, [y]) : Bi-Gaussian

SYNOPSIS ^

function y=bigauss(varargin)

DESCRIPTION ^

 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: Nov. 26, 2018
 See also iFunc, iFunc/fits, iFunc/plot
 (c) E.Farhi, ILL. License: EUPL.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1