Bases: astropy.modeling.polynomial.PolynomialModel
2D Polynomial model.
Represents a general polynomial of degree n:
P(x,y) = c_{0_0} + c_{1_0}*x + ...+ c_{n_0}*x^n + c_{0_1}*y + ...+ c_{0_n}*y^n + c_{1_1}*x*y + c_{1_2}*x*y^2 + ... + c_{1_(n-1)}*x*y^{n-1}+ ... + c_{(n-1)_1}*x^{n-1}*y
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
fixed: a dict :
tied: dict :
bounds: dict : eqcons: list :
ineqcons : list
|
---|
Methods Summary
deriv(x, y, *params) | Computes the Vandermonde matrix. |
invlex_coeff() | |
mhorner(x, y, coeff) | Multivariate Horner’s scheme |
Methods Documentation
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 |
---|