LinearGaussians#
- class lsst.multiprofit.LinearGaussians(*, gaussians_fixed: Gaussians, gaussians_free: tuple[tuple[Gaussians, ParameterD], ...])#
Bases:
BaseModelHelper for linear least-squares fitting of Gaussian mixtures.
Attributes Summary
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].Methods Summary
make(component_mixture[, channel, is_psf])Make a LinearGaussians from a ComponentMixture.
Attributes Documentation
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'forbid', 'frozen': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
Methods Documentation
- static make(component_mixture: ComponentMixture, channel: Channel = None, is_psf: bool = False) Self#
Make a LinearGaussians from a ComponentMixture.
Parameters#
- component_mixture
A component mixture to initialize Gaussians from.
- channel
The channel all Gaussians are applicable for.
- is_psf
Whether the components are a smoothing kernel.
Returns#
- lineargaussians
A LinearGaussians instance initialized with the appropriate fixed/free gaussians.