Package ComboCode :: Package cc :: Package ivs :: Package sigproc :: Package lmfit :: Module utilfuncs
[hide private]
[frames] | no frames]

Module utilfuncs

source code

Utility mathematical functions and common lineshapes for minimizer

Functions [hide private]
 
gauss(x, amp, cen, wid)
gaussian function: wid = half-width at half-max
source code
 
loren(x, amp, cen, wid)
lorenztian function: wid = half-width at half-max
source code
 
gauss_area(x, amp, cen, wid)
scaled gaussian function: wid = half-width at half-max
source code
 
loren_area(x, amp, cen, wid)
scaled lorenztian function: wid = half-width at half-max
source code
 
pvoigt(x, amp, cen, wid, frac)
pseudo-voigt function: (1-frac)*gauss(amp, cen, wid) + frac*loren(amp, cen, wid)
source code
 
pvoigt_area(x, amp, cen, wid, frac)
scaled pseudo-voigt function: (1-frac)*gauss_area(amp, cen, wid) + frac*loren_are(amp, cen, wid)
source code
 
pearson7(x, amp, cen, wid, expon)
pearson peak function
source code
 
pearson7_area(x, amp, cen, wid, expon)
scaled pearson peak function
source code
Variables [hide private]
  log2 = 0.69314718055994529
  pi = 3.14159265359
  CUSTOM_FUNCTIONS = {'gauss': gauss, 'gauss_area': gauss_area, ...
  __package__ = 'ComboCode.cc.ivs.sigproc.lmfit'
Variables Details [hide private]

CUSTOM_FUNCTIONS

Value:
{'gauss': gauss, 'gauss_area': gauss_area, 'loren': loren, 'loren_area\
': loren_area, 'pvoigt': pvoigt, 'pvoigt_area': pvoigt_area, 'pearson7\
': pearson7, 'pearson7_area': pearson7_area}