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
|
Attributes Summary
inputs | |
outputs |
Methods Summary
__call__(x, y[, model_set_axis]) | Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated. |
eval(*args, **kwargs) | Deprecated since version 1.0. |
evaluate(x, y, *coeffs) | Evaluate the model on some input variables. |
fit_deriv(x, y, *params) | Computes the Vandermonde matrix. |
invlex_coeff(coeffs) | |
multivariate_horner(x, y, coeffs) | Multivariate Horner’s scheme |
prepare_inputs(x, y, **kwargs) | This method is used in __call__ to ensure that all the inputs to the model can be broadcast into compatible shapes (if one or both of them are input as arrays), particularly if there are more than one parameter sets. |
Attributes Documentation
Methods Documentation
Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated.
Deprecated since version 1.0: The eval function is deprecated and may be removed in a future version. Use Polynomial2D.evaluate instead.
Evaluate the model on some input variables.
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 |
---|
This method is used in __call__ to ensure that all the inputs to the model can be broadcast into compatible shapes (if one or both of them are input as arrays), particularly if there are more than one parameter sets.