I need some help understanding this numpy function called "numpy.polynomial.hermite.hermfit(x, y, deg, rcond=None, full=False, w=None)":https://numpy.org/doc/stable/reference/generated/numpy.polynomial.hermite.hermfit.html#numpy.polynomial.hermite.hermfit
It says in the documentation that it takes data and does a fitting to Gauss-Hermite polynomial and then gives the values of the coefficients. I want to know the following:
- What is the actual expression of the Gauss-Hermite polynomial they are fitting the data to?
- The documents states that the coefficients are returned according to the degree that is input into the function. Does this mean that if deg=2, the returned answers are h1 and h2? or if deg=4, they are h1,h2,h3,h4? The worked example in the doc doesn't explicitly state that.
Thanks lots.