astropy:docs

OrthoPolynomialBase

class astropy.modeling.polynomial.OrthoPolynomialBase(x_degree, y_degree, x_domain=None, x_window=None, y_domain=None, y_window=None, n_models=None, model_set_axis=None, **params)[source] [edit on github]

Bases: astropy.modeling.polynomial.PolynomialBase

This is a base class for the 2D Chebyshev and Legendre models.

The polynomials implemented here require a maximum degree in x and y.

Parameters:

x_degree : int

degree in x

y_degree : int

degree in y

x_domain : list or None

domain of the x independent variable

x_window : list or None

range of the x independent variable

y_domain : list or None

domain of the y independent variable

y_window : list or None

range of the y independent variable

param_dim : int

number of parameter sets

**params : dict

{keyword: value} pairs, representing {parameter_name: value}

Attributes Summary

n_inputs int(x[, base]) -> integer
n_outputs int(x[, base]) -> integer

Methods Summary

__call__(*inputs, **kwargs) Transforms data using this model.
get_num_coeff() Determine how many coefficients are needed
imhorner(x, y, coeff)
invlex_coeff()

Attributes Documentation

n_inputs = 2
n_outputs = 1

Methods Documentation

__call__(*inputs, **kwargs)[source] [edit on github]

Transforms data using this model.

Parameters:

x : scalar, list or array

y : scalar, lis or array

get_num_coeff()[source] [edit on github]

Determine how many coefficients are needed

Returns:

numc : int

number of coefficients

imhorner(x, y, coeff)[source] [edit on github]
invlex_coeff()[source] [edit on github]

Page Contents