edges_cal.modelling.EdgesPoly
- class edges_cal.modelling.EdgesPoly(*, parameters=None, n_terms=_Nothing.NOTHING, transform: ModelTransform = IdentityTransform(), offset=-2.5)[source]
Polynomial with an offset corresponding to approximate galaxy spectral index.
- Parameters:
offset (float) – The offset to use. Default is close to the Galactic spectral index.
kwargs – All other arguments are passed through to
Polynomial
.
Methods
__init__
(*[, parameters, n_terms, ...])Method generated by attrs for class EdgesPoly.
at
(**kwargs)Get an evaluated linear model.
fit
(xdata, ydata[, weights])Create a linear-regression fit object.
from_str
(model, **kwargs)Obtain a
Model
given a string name.get_basis_term
(indx, x)Define the basis functions of the model.
get_basis_term_transformed
(indx, x)Get the basis term after coordinate transformation.
Get a 2D array of all basis terms at
x
.with_nterms
([n_terms, parameters])Return a new
Model
with given nterms and parameters.with_params
(parameters)Get new model with different parameters.
Attributes