Simulator for x-ray diffraction patterns of single partices.