edges_cal.modelling.Fourier
- class edges_cal.modelling.Fourier(*, parameters=None, n_terms=_Nothing.NOTHING, transform: ModelTransform = IdentityTransform(), period=6.283185307179586)[source]
A Fourier-basis model.
Methods
__init__(*[, parameters, n_terms, ...])Method generated by attrs for class Fourier.
at(**kwargs)Get an evaluated linear model.
fit(xdata, ydata[, weights])Create a linear-regression fit object.
from_str(model, **kwargs)Obtain a
Modelgiven 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
Modelwith given nterms and parameters.with_params(parameters)Get new model with different parameters.
Attributes