Which you choose depends on the weighting function and interval of orthogonality. I give a detailed explanation with lots of examples in this book. The software is free and available at the link in the Preface. You can read much of the book without actually getting it. There are several animations of 3D fields using Hermite polynomials on my web page (see 3D Fields link). https://read.amazon.com/kp/embed?asin=B07GT8TLDV&preview=newtab&linkCode=kpe&ref_=cm_sw_r_kb_dp_185JMVKTXHJM76D9WJYF