Bases: astropy.modeling.polynomial.PolynomialModel
2D Polynomial model.
Represents a general polynomial of degree n:
Parameters: | degree : int
x_domain : list or None
y_domain : list or None
x_window : list or None
y_window : list or None
param_dim : int
**params : dict
|
---|---|
Other Parameters: | |
fixed : a dict
tied : dict
bounds : dict eqcons : list
ineqcons : list
|
Methods Summary
__call__(*inputs, **kwargs) | Transforms data using this model. |
fit_deriv(x, y, *params) | Computes the Vandermonde matrix. |
invlex_coeff() | |
mhorner(x, y, coeff) | Multivariate Horner’s scheme |
Methods Documentation
Transforms data using this model.
Parameters: | x : scalar, list or array
y : scalar, list or array
|
---|
Computes the Vandermonde matrix.
Parameters: | x : ndarray
y : ndarray
params : throw away parameter
|
---|---|
Returns: | result : ndarray
|
Multivariate Horner’s scheme
Parameters: | x, y : array coeff : array of coefficients in inverse lexical order |
---|