A Hermite series class.
Hermite instances provide the standard Python numerical methods ‘+’, ‘-‘, ‘*’, ‘//’, ‘%’, ‘divmod’, ‘**’, and ‘()’ as well as the listed methods.
Parameters : | coef : array_like
domain : (2,) array_like, optional
window : (2,) array_like, optional
|
---|
Notes
It is important to specify the domain in many cases, for instance in fitting data, because many of the important properties of the polynomial basis only hold in a specified interval and consequently the data must be mapped into that interval in order to benefit.
Attributes
domain | |
window |
coef | (N,) ndarray | Hermite coefficients, from low to high. |
Methods
__call__(arg) | |
basis(deg[, domain, window]) | Hermite polynomial of degree deg. |
cast(series[, domain, window]) | Convert instance to equivalent Hermite series. |
convert([domain, kind, window]) | Convert to different class and/or domain. |
copy() | Return a copy. |
cutdeg(deg) | Truncate series to the given degree. |
degree() | The degree of the series. |
deriv([m]) | Differentiate. |
fit(x, y, deg[, domain, rcond, full, w, window]) | Least squares fit to data. |
fromroots(roots[, domain, window]) | Return Hermite instance with specified roots. |
has_samecoef(other) | Check if coefficients match. |
has_samedomain(other) | Check if domains match. |
has_sametype(other) | Check if types match. |
has_samewindow(other) | Check if windows match. |
identity([domain, window]) | Identity function. |
integ([m, k, lbnd]) | Integrate. |
linspace([n, domain]) | Return x,y values at equally spaced points in domain. |
mapparms() | Return the mapping parameters. |
roots() | Return list of roots. |
trim([tol]) | Remove small leading coefficients |
truncate(size) | Truncate series to length size. |