where Σ is a d-dimensional square matrix and ν=(ν1…νd) is the vector representing the order of differentiation for each variable x=(x1…xd). In the case where Σ=1 and x=x1 the formula reduces to the standard univariate Hermite polynomials:
Hν(x)=e2x2(−1)νdxνdνe−2x2
If transform is not NULL, the variables varx are replaced with transformf(x) to compute the polynomials Hν(f(x),Σ)
Examples
### univariate Hermite polynomials up to order 3hermite(3)### multivariate Hermite polynomials up to order 2hermite(order =2, sigma = matrix(c(1,0,0,1), nrow =2), var = c('z1','z2'))### multivariate Hermite polynomials with transformation of variableshermite(order =2, sigma = matrix(c(1,0,0,1), nrow =2), var = c('z1','z2'), transform = c('z1+z2','z1-z2'))
References
Guidotti E (2022). "calculus: High-Dimensional Numerical and Symbolic Calculus in R." Journal of Statistical Software, 104(5), 1-37. tools:::Rd_expr_doi("10.18637/jss.v104.i05")