lsst.gauss2d.fit g199a45376c+5e234f8357
 
Loading...
Searching...
No Matches
lsst::gauss2d::fit::ParametricModel Class Referenceabstract

#include <parametricmodel.h>

Inheritance diagram for lsst::gauss2d::fit::ParametricModel:
lsst::gauss2d::fit::Parametric lsst::gauss2d::fit::Component lsst::gauss2d::fit::ComponentMixture lsst::gauss2d::fit::Model< T, Image, Indices, Mask > lsst::gauss2d::fit::EllipticalComponent lsst::gauss2d::fit::PsfModel lsst::gauss2d::fit::Source lsst::gauss2d::fit::GaussianComponent lsst::gauss2d::fit::SersicMixComponent

Public Member Functions

virtual void add_extra_param_map (const Channel &channel, ExtraParamMap &map_extra, const GradParamMap &map_grad, ParameterMap &offsets) const =0
 
virtual void add_extra_param_factors (const Channel &channel, ExtraParamFactors &factors) const =0
 
virtual void add_grad_param_map (const Channel &channel, GradParamMap &map, ParameterMap &offsets) const =0
 
virtual void add_grad_param_factors (const Channel &channel, GradParamFactors &factors) const =0
 
virtual void set_extra_param_factors (const Channel &channel, ExtraParamFactors &factors, size_t index) const =0
 
virtual void set_grad_param_factors (const Channel &channel, GradParamFactors &factors, size_t index) const =0
 
virtual std::unique_ptr< const lsst::gauss2d::Gaussians > get_gaussians (const Channel &channel) const =0
 
virtual size_t get_n_gaussians (const Channel &channel) const =0
 Return the number of Gaussian sub-components controlled by this model.
 
- Public Member Functions inherited from lsst::gauss2d::fit::Parametric
virtual ParamRefs & get_parameters (ParamRefs &params, ParamFilter *filter=nullptr) const =0
 
virtual ParamCRefs & get_parameters_const (ParamCRefs &params, ParamFilter *filter=nullptr) const =0
 Same as get_parameters(), but for const refs.
 
ParamRefs get_parameters_new (ParamFilter *filter=nullptr) const
 Same as get_parameters(), but returning a new vector.
 
ParamCRefs get_parameters_const_new (ParamFilter *filter=nullptr) const
 Same as get_parameters_const(), but returning a new vector.
 

Detailed Description

A Parametric that can manage Parameter gradients and return Gaussians.

Note
See GaussianEvaluator for details on extra/grad param maps.

Member Function Documentation

◆ add_extra_param_factors()

virtual void lsst::gauss2d::fit::ParametricModel::add_extra_param_factors ( const Channel & channel,
ExtraParamFactors & factors ) const
pure virtual

Add extra Parameter gradient factors to an existing vector.

Parameters
channelThe Channel to add factors for.
factorsThe ExtraParamFactors to add to.

Implemented in lsst::gauss2d::fit::GaussianComponent, lsst::gauss2d::fit::Model< T, Image, Indices, Mask >, lsst::gauss2d::fit::PsfModel, lsst::gauss2d::fit::SersicMixComponent, and lsst::gauss2d::fit::Source.

◆ add_extra_param_map()

virtual void lsst::gauss2d::fit::ParametricModel::add_extra_param_map ( const Channel & channel,
ExtraParamMap & map_extra,
const GradParamMap & map_grad,
ParameterMap & offsets ) const
pure virtual

Add extra Parameter indices to a map.

Parameters
channelThe Channel to add indices for.
map_extraThe ExtraParamMap to add to.
map_gradThe completed GradParamMap.
offsetsA map of index offsets for Parameters that have already been added.

Implemented in lsst::gauss2d::fit::GaussianComponent, lsst::gauss2d::fit::Model< T, Image, Indices, Mask >, lsst::gauss2d::fit::PsfModel, lsst::gauss2d::fit::SersicMixComponent, and lsst::gauss2d::fit::Source.

◆ add_grad_param_factors()

virtual void lsst::gauss2d::fit::ParametricModel::add_grad_param_factors ( const Channel & channel,
GradParamFactors & factors ) const
pure virtual

Add Parameter gradient factors to an existing map.

Parameters
channelThe Channel to add factors for.
factorsThe GradParamFactors to add to.

Implemented in lsst::gauss2d::fit::GaussianComponent, lsst::gauss2d::fit::Model< T, Image, Indices, Mask >, lsst::gauss2d::fit::PsfModel, lsst::gauss2d::fit::SersicMixComponent, and lsst::gauss2d::fit::Source.

◆ add_grad_param_map()

virtual void lsst::gauss2d::fit::ParametricModel::add_grad_param_map ( const Channel & channel,
GradParamMap & map,
ParameterMap & offsets ) const
pure virtual

Add Parameter gradient indices to an existing map.

Parameters
channelThe Channel to add indices for.
mapThe map to add to.
offsetsA map of index offsets for Parameters that have already been added.

Implemented in lsst::gauss2d::fit::GaussianComponent, lsst::gauss2d::fit::Model< T, Image, Indices, Mask >, lsst::gauss2d::fit::PsfModel, lsst::gauss2d::fit::SersicMixComponent, and lsst::gauss2d::fit::Source.

◆ get_gaussians()

virtual std::unique_ptr< const lsst::gauss2d::Gaussians > lsst::gauss2d::fit::ParametricModel::get_gaussians ( const Channel & channel) const
pure virtual

Return the vector of Gaussian sub-components controlled by this model.

Parameters
channelThe Channel to return Gaussians for.
Returns
The Gaussians controlled by this model.

Implemented in lsst::gauss2d::fit::GaussianComponent, lsst::gauss2d::fit::Model< T, Image, Indices, Mask >, lsst::gauss2d::fit::PsfModel, lsst::gauss2d::fit::SersicMixComponent, and lsst::gauss2d::fit::Source.

◆ get_n_gaussians()

virtual size_t lsst::gauss2d::fit::ParametricModel::get_n_gaussians ( const Channel & channel) const
pure virtual

◆ set_extra_param_factors()

virtual void lsst::gauss2d::fit::ParametricModel::set_extra_param_factors ( const Channel & channel,
ExtraParamFactors & factors,
size_t index ) const
pure virtual

Set extra Parameter gradient factors in an existing map.

Parameters
channelThe Channel to set factors for.
factorsThe ExtraParamFactors to set factors for.
indexThe index to begin setting factors at.

Implemented in lsst::gauss2d::fit::GaussianComponent, lsst::gauss2d::fit::Model< T, Image, Indices, Mask >, lsst::gauss2d::fit::PsfModel, lsst::gauss2d::fit::SersicMixComponent, and lsst::gauss2d::fit::Source.

◆ set_grad_param_factors()

virtual void lsst::gauss2d::fit::ParametricModel::set_grad_param_factors ( const Channel & channel,
GradParamFactors & factors,
size_t index ) const
pure virtual

Set Parameter gradient factors in an existing map.

Parameters
channelThe Channel to set factors for.
factorsThe GradParamFactors to set factors for.
indexThe index to begin setting factors at.

Implemented in lsst::gauss2d::fit::GaussianComponent, lsst::gauss2d::fit::Model< T, Image, Indices, Mask >, lsst::gauss2d::fit::PsfModel, lsst::gauss2d::fit::SersicMixComponent, and lsst::gauss2d::fit::Source.


The documentation for this class was generated from the following file: