Errors and improvements in the perfectpattern code

2011/01/18 // 0 Comments

Hi all, Just a quick heads-up, there are some minor errors in the perfectpattern code with respect to the convergence criteria. Also I have made some improvements and added a “counting statistics”-like Poisson error to more closely approach real data. These updates have now been posted on the software [...]

“Perfect” 1D pattern generation software.

2010/08/30 // 0 Comments

I have written some small, simple bits of Matlab software that can generate scattering patterns in the range you request for polydisperse, dilute spheres or ellipsoids. While nothing new per se, this implementation is guaranteed to produce correct scattering patterns irrespective of the width of the distribution. Allow me to quickly explain. The normal way of calculating these patterns in fitting functions and the likes, is to choose an upper size limit (perhaps related to the width and mean of the distribution), and divide the size range between zero and this upper limit into perhaps 100 different sizes. Then the scattering pattern of each of these contributions is calculated, multiplied with their probability (obtained from the probability (or size) distribution function), multiplied with the square of the particle volume for that size, and then summed. In all, then, this is a numeric integration over the volume-square weighted size distribution. The problem lies in the [...]