- qspec.models. Summed ( models , labels=None )[source]
-
A
Listedmodel summing over all submodels $g_i$ with individual positions $x_i$ and intensities $p_i$$$ f(x) = \sum\limits_i p_i\,g_i(x - x_i). $$The parameters $x_i$ and $p_i$ are named
center{label}andint{label}, respectively.- Parameters:
-
- modelsIterable[Model]
A list of submodels whose parameters are adopted by this model.
- labelsIterable[str] | None
A list of labels with the same length as
models. The labels are appended to the parameter names of each submodel.
- Attributes:
-
- descriptionstr
A description of the model hierarchy, e.g.,
"Offset.Summed[0].Hyperfine.Voigt".- dxfloat
A hint for an x-axis step size for a smooth display of the model.
- errorstr
An error message if there is an issue with the model parameters (not implemented).
- fixeslist[fix_type]
The fix states of the parameters, see
Model.set_fix.- linkslist[bool]
Whether the parameters are linked to the parameters with the same name in a
Linkedmodel.- modelModel | None
The submodel.
- nameslist[str]
The names of the parameters.
- pdict[str, int]
A map of the parameter names to their indexes.
- sizeint
The number of parameters required by the model.
- typestr
The name of the model type.
- valslist[float]
The current values of the parameters.