text: Technically a perfect crystal must be infinite, so a finite size is an imperfection. Real crystals always exhibit imperfections of their order besides their finite size, and these imperfections can have profound effects on the properties of the material. André Guinier proposed a widely employed distinction between imperfections that preserve the long-range order of the crystal that he called disorder of the first kind and those that destroy it called disorder of the second kind. An example of the first is thermal vibration; an example of the second is some density of dislocations.
  The generally applicable structure factor  can be used to include the effect of any imperfection.  In crystallography, these effects are treated as separate from the structure factor , so separate factors for size or thermal effects are introduced into the expressions for scattered intensity, leaving the perfect crystal structure factor unchanged.  Therefore, a detailed description of these factors in crystallographic structure modeling and structure determination by diffraction is not appropriate in this article.