polyTEM.paracrystalline.calc_g¶
- polyTEM.paracrystalline.calc_g(qvals, label, N=0, plot=True, saveplotfile='')¶
Bin/Histogram the distribution of qvals Calculate paracrystallinity % g where g = np.sqrt(E[d**2] / E[d] - 1) d == d-spacing of lattice plane E[x**n] == expected value, or nth moment of random variable x – INPUTS qvals = 1D np.array of q_centers to count label = plot title, can include spaces N = number of images this is binned across