LSST Applications g0265f82a02+0e5473021a,g02d81e74bb+0dd8ce4237,g1470d8bcf6+3ea6592b6f,g2079a07aa2+86d27d4dc4,g2305ad1205+5ca4c0b359,g295015adf3+d10818ec9d,g2a9a014e59+6f9be1b9cd,g2bbee38e9b+0e5473021a,g337abbeb29+0e5473021a,g3ddfee87b4+703ba97ebf,g487adcacf7+4fa16da234,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+ffa42b374e,g5a732f18d5+53520f316c,g64a986408d+0dd8ce4237,g858d7b2824+0dd8ce4237,g8a8a8dda67+585e252eca,g99cad8db69+d39438377f,g9ddcbc5298+9a081db1e4,ga1e77700b3+15fc3df1f7,ga8c6da7877+f1d96605c8,gb0e22166c9+60f28cb32d,gb6a65358fc+0e5473021a,gba4ed39666+c2a2e4ac27,gbb8dafda3b+e5339d463f,gc120e1dc64+da31e9920e,gc28159a63d+0e5473021a,gcf0d15dbbd+703ba97ebf,gdaeeff99f8+f9a426f77a,ge6526c86ff+889fc9d533,ge79ae78c31+0e5473021a,gee10cc3b42+585e252eca,gf18bd8381d+7268b93478,gff1a9f87cc+0dd8ce4237,w.2024.16
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
lsst::meas::modelfit::MultiShapeletPsfLikelihood Class Reference

Likelihood object used to fit multishapelet models to PSF model images; mostly for internal use by GeneralPsfFitter. More...

#include <GeneralPsfFitter.h>

Inheritance diagram for lsst::meas::modelfit::MultiShapeletPsfLikelihood:
lsst::meas::modelfit::Likelihood

Public Member Functions

 MultiShapeletPsfLikelihood (ndarray::Array< Pixel const, 2, 1 > const &image, geom::Point2I const &xy0, std::shared_ptr< Model > model, Scalar sigma, ndarray::Array< Scalar const, 1, 1 > const &fixed)
 
void computeModelMatrix (ndarray::Array< Pixel, 2,-1 > const &modelMatrix, ndarray::Array< Scalar const, 1, 1 > const &nonlinear, bool doApplyWeights=true) const override
 Evaluate the model for the given vector of nonlinear parameters.
 
virtual ~MultiShapeletPsfLikelihood ()
 
int getDataDim () const
 Return the number of data points.
 
int getAmplitudeDim () const
 Return the number of linear parameters (columns of the model matrix)
 
int getNonlinearDim () const
 Return the number of nonlinear parameters (which parameterize the model matrix)
 
int getFixedDim () const
 Return the number of fixed nonlinear parameters (set on Likelihood construction)
 
ndarray::Array< Scalar const, 1, 1 > getFixed () const
 Return the vector of fixed nonlinear parameters.
 
ndarray::Array< Pixel const, 1, 1 > getData () const
 Return the vector of weighted, scaled data points \(z\).
 
ndarray::Array< Pixel const, 1, 1 > getUnweightedData () const
 Return the vector of unweighted data points \(y\).
 
ndarray::Array< Pixel const, 1, 1 > getWeights () const
 Return the vector of weights \(w\) applied to data points and model matrix rows.
 
ndarray::Array< Pixel const, 1, 1 > getVariance () const
 Return the vector of per-data-point variances.
 
std::shared_ptr< ModelgetModel () const
 Return an object that defines the model and its parameters.
 

Protected Attributes

std::shared_ptr< Model_model
 
ndarray::Array< Scalar const, 1, 1 > _fixed
 
ndarray::Array< Pixel, 1, 1 > _data
 
ndarray::Array< Pixel, 1, 1 > _unweightedData
 
ndarray::Array< Pixel, 1, 1 > _variance
 
ndarray::Array< Pixel, 1, 1 > _weights
 

Detailed Description

Likelihood object used to fit multishapelet models to PSF model images; mostly for internal use by GeneralPsfFitter.

Definition at line 315 of file GeneralPsfFitter.h.

Constructor & Destructor Documentation

◆ MultiShapeletPsfLikelihood()

lsst::meas::modelfit::MultiShapeletPsfLikelihood::MultiShapeletPsfLikelihood ( ndarray::Array< Pixel const, 2, 1 > const & image,
geom::Point2I const & xy0,
std::shared_ptr< Model > model,
Scalar sigma,
ndarray::Array< Scalar const, 1, 1 > const & fixed )

◆ ~MultiShapeletPsfLikelihood()

virtual lsst::meas::modelfit::MultiShapeletPsfLikelihood::~MultiShapeletPsfLikelihood ( )
virtual

Member Function Documentation

◆ computeModelMatrix()

void lsst::meas::modelfit::MultiShapeletPsfLikelihood::computeModelMatrix ( ndarray::Array< Pixel, 2,-1 > const & modelMatrix,
ndarray::Array< Scalar const, 1, 1 > const & nonlinear,
bool doApplyWeights = true ) const
overridevirtual

Evaluate the model for the given vector of nonlinear parameters.

Parameters
[out]modelMatrixThe dataDim x amplitudeDim matrix \(B\) that expresses the model projected in such a way that it can be compared to the data when multiplied by an amplitude vector \(\alpha\). It should be weighted if the data vector is. The caller is responsible for guaranteeing that the shape of the matrix correct, but implementations should not assume anything about the initial values of the matrix elements.
[in]nonlinearVector of nonlinear parameters at which to evaluate the model.
[in]doApplyWeightsIf False, do not apply the weights to the modelMatrix.

Implements lsst::meas::modelfit::Likelihood.

◆ getAmplitudeDim()

int lsst::meas::modelfit::Likelihood::getAmplitudeDim ( ) const
inlineinherited

Return the number of linear parameters (columns of the model matrix)

Definition at line 77 of file Likelihood.h.

77{ return _model->getAmplitudeDim(); }
std::shared_ptr< Model > _model
Definition Likelihood.h:147

◆ getData()

ndarray::Array< Pixel const, 1, 1 > lsst::meas::modelfit::Likelihood::getData ( ) const
inlineinherited

Return the vector of weighted, scaled data points \(z\).

Definition at line 89 of file Likelihood.h.

89{ return _data; }
ndarray::Array< Pixel, 1, 1 > _data
Definition Likelihood.h:149

◆ getDataDim()

int lsst::meas::modelfit::Likelihood::getDataDim ( ) const
inlineinherited

Return the number of data points.

Definition at line 74 of file Likelihood.h.

74{ return _data.getSize<0>(); }

◆ getFixed()

ndarray::Array< Scalar const, 1, 1 > lsst::meas::modelfit::Likelihood::getFixed ( ) const
inlineinherited

Return the vector of fixed nonlinear parameters.

Definition at line 86 of file Likelihood.h.

86{ return _fixed; }
ndarray::Array< Scalar const, 1, 1 > _fixed
Definition Likelihood.h:148

◆ getFixedDim()

int lsst::meas::modelfit::Likelihood::getFixedDim ( ) const
inlineinherited

Return the number of fixed nonlinear parameters (set on Likelihood construction)

Definition at line 83 of file Likelihood.h.

83{ return _model->getFixedDim(); }

◆ getModel()

std::shared_ptr< Model > lsst::meas::modelfit::Likelihood::getModel ( ) const
inlineinherited

Return an object that defines the model and its parameters.

Definition at line 105 of file Likelihood.h.

105{ return _model; }

◆ getNonlinearDim()

int lsst::meas::modelfit::Likelihood::getNonlinearDim ( ) const
inlineinherited

Return the number of nonlinear parameters (which parameterize the model matrix)

Definition at line 80 of file Likelihood.h.

80{ return _model->getNonlinearDim(); }

◆ getUnweightedData()

ndarray::Array< Pixel const, 1, 1 > lsst::meas::modelfit::Likelihood::getUnweightedData ( ) const
inlineinherited

Return the vector of unweighted data points \(y\).

Definition at line 92 of file Likelihood.h.

92{ return _unweightedData; }
ndarray::Array< Pixel, 1, 1 > _unweightedData
Definition Likelihood.h:150

◆ getVariance()

ndarray::Array< Pixel const, 1, 1 > lsst::meas::modelfit::Likelihood::getVariance ( ) const
inlineinherited

Return the vector of per-data-point variances.

Definition at line 102 of file Likelihood.h.

102{ return _variance; }
ndarray::Array< Pixel, 1, 1 > _variance
Definition Likelihood.h:151

◆ getWeights()

ndarray::Array< Pixel const, 1, 1 > lsst::meas::modelfit::Likelihood::getWeights ( ) const
inlineinherited

Return the vector of weights \(w\) applied to data points and model matrix rows.

Will be an empty array if no weights are applied.

Definition at line 99 of file Likelihood.h.

99{ return _weights; }
ndarray::Array< Pixel, 1, 1 > _weights
Definition Likelihood.h:152

Member Data Documentation

◆ _data

ndarray::Array<Pixel,1,1> lsst::meas::modelfit::Likelihood::_data
protectedinherited

Definition at line 149 of file Likelihood.h.

◆ _fixed

ndarray::Array<Scalar const,1,1> lsst::meas::modelfit::Likelihood::_fixed
protectedinherited

Definition at line 148 of file Likelihood.h.

◆ _model

std::shared_ptr<Model> lsst::meas::modelfit::Likelihood::_model
protectedinherited

Definition at line 147 of file Likelihood.h.

◆ _unweightedData

ndarray::Array<Pixel,1,1> lsst::meas::modelfit::Likelihood::_unweightedData
protectedinherited

Definition at line 150 of file Likelihood.h.

◆ _variance

ndarray::Array<Pixel,1,1> lsst::meas::modelfit::Likelihood::_variance
protectedinherited

Definition at line 151 of file Likelihood.h.

◆ _weights

ndarray::Array<Pixel,1,1> lsst::meas::modelfit::Likelihood::_weights
protectedinherited

Definition at line 152 of file Likelihood.h.


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