edges_cal.modelling.Foreground
- class edges_cal.modelling.Foreground(*, parameters=None, n_terms=_Nothing.NOTHING, with_cmb=False, f_center=75.0, transform: ModelTransform = _Nothing.NOTHING)[source]
Base class for Foreground models.
- Parameters:
f_center (float) – A “center” or “reference” frequency. Typically models will have their co-ordindates divided by this frequency before solving for the co-efficients.
with_cmb (bool) – Whether to add a simple CMB component to the foreground.
Methods
__init__
(*[, parameters, n_terms, with_cmb, ...])Method generated by attrs for class Foreground.
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 terms for 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