Bases: astropy.modeling.polynomial.PolynomialModel
1D Polynomial model.
Parameters: | degree : int
domain : list or None 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[, 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, *coeffs) | Evaluate the model on some input variables. |
fit_deriv(x, *params) | Computes the Vandermonde matrix. |
horner(x, coeffs) | |
prepare_inputs(x, **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 Polynomial1D.evaluate instead.
Evaluate the model on some input variables.
Computes the Vandermonde matrix.
Parameters: | x : ndarray
params : throw away parameter
|
---|---|
Returns: | result : ndarray
|
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.