edges.modeling.composite¶
Module defining composite models.
- class edges.modeling.composite.ComplexMagPhaseModel(mag: Model | FixedLinearModel, phs: Model | FixedLinearModel)[source]¶
A composite model that is specifically for complex functions in mag/phase.
- at(**kwargs) FixedLinearModel[source]¶
Get an evaluated linear model.
- class edges.modeling.composite.ComplexRealImagModel(real: Model | FixedLinearModel, imag: Model | FixedLinearModel)[source]¶
A composite model that is specifically for complex functions in real/imag.
- at(**kwargs) FixedLinearModel[source]¶
Get an evaluated linear model.
- class edges.modeling.composite.CompositeModel(*, models: dict[str, Model], data_transform: DataTransform = NOTHING)[source]¶
Define a composite model from a set of sub-models.
In totality, the resulting model is still
- at(**kwargs) FixedLinearModel[source]¶
Get an evaluated linear model.
- fit(xdata: ndarray, ydata: ndarray, weights: ndarray | float = 1.0, **kwargs) ModelFit[source]¶
Create a linear-regression fit object.
- get_basis_term_transformed(indx: int, x: ndarray, with_scaler: bool = True) ndarray[source]¶
Get the basis function term after coordinate tranformation.
- get_basis_terms(x: ndarray, with_scaler: bool = True) ndarray[source]¶
Get a 2D array of all basis terms at
x.
- get_model(model: str, parameters: ndarray = None, x: ndarray | None = None, with_scaler: bool = True)[source]¶
Calculate a sub-model.