astropy:docs

PolynomialModel

class astropy.modeling.polynomial.PolynomialModel(degree, n_inputs=1, n_outputs=1, n_models=None, model_set_axis=None, **params)[source] [edit on github]

Bases: astropy.modeling.polynomial.PolynomialBase

Base class for polynomial models.

Its main purpose is to determine how many coefficients are needed based on the polynomial order and dimension and to provide their default values, names and ordering.

Attributes Summary

degree Degree of polynomial.
n_inputs The number of input variables to model evaluation.
n_outputs The number of outputs returned when model is evaluated.

Methods Summary

get_num_coeff(ndim) Return the number of coefficients in one parameter set

Attributes Documentation

degree

Degree of polynomial.

n_inputs

The number of input variables to model evaluation.

n_outputs

The number of outputs returned when model is evaluated.

Methods Documentation

get_num_coeff(ndim)[source] [edit on github]

Return the number of coefficients in one parameter set

Page Contents