Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
peak_shapes [2015/11/18 01:47]
rowlesmr3
peak_shapes [2018/03/19 08:04]
rowlesmr3 added title
Line 1: Line 1:
 +====== Peak shapes ======
 +
 Some various peak shapes that I've found useful in doing things like crystallite size distributions,​ solid solutions and the like. Some various peak shapes that I've found useful in doing things like crystallite size distributions,​ solid solutions and the like.
  
Line 21: Line 23:
 Lognormal Lognormal
 <code topas>​macro & lognormal(&​ int, & posn, & fwhm, & x) { <code topas>​macro & lognormal(&​ int, & posn, & fwhm, & x) {
- int/​(Sqrt(2 Pi) LN_sigma(p,w) x) Exp(-((Ln(x)-LN_mu(p,w))/(Sqrt(2) LN_sigma(p,w)))^2)+ int/​(Sqrt(2 Pi) LN_sigma(posn,fwhm) x) Exp(-((Ln(x)-LN_mu(posn,fwhm))/(Sqrt(2) LN_sigma(posn,fwhm)))^2)
 } }
  

Personal Tools