gauss_legendre_grid#
- de_ebsd.index.spherical.gauss_legendre_grid(bandwidth, device=None, dtype=torch.float64)[source]#
Build the exact quadrature grid for bandwidth
L.Returns
(theta, phi, weights):theta–(L + 1,)colatitude nodes,arccosof the Gauss-Legendre nodes (in[0, pi]).phi–(2 L + 2,)equiangular azimuth nodes2 pi k / N_phi.weights–(L + 1, 2 L + 2)quadrature weightsw_theta[j] * (2 pi / N_phi)such thatsum weights[j, k] f(theta_j, phi_k)integrates any band-limitedfover the sphere exactly.