LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
24 #ifndef LSST_MEAS_MODELFIT_Likelihood_h_INCLUDED
25 #define LSST_MEAS_MODELFIT_Likelihood_h_INCLUDED
27 #include "ndarray_fwd.h"
33 namespace lsst {
namespace meas {
namespace modelfit {
121 ndarray::Array<Pixel,2,-1>
const & modelMatrix,
122 ndarray::Array<Scalar const,1,1>
const & nonlinear,
123 bool doApplyWeights=
true
143 "Fixed parameter vector size (%d) does not match Model fixed parameter dimensionality (%d)"
157 #endif // !LSST_MEAS_MODELFIT_Likelihood_h_INCLUDED
#define LSST_THROW_IF_NE(N1, N2, EXC_CLASS, MSG)
Check whether the given values are equal, and throw an LSST Exception if they are not.
ndarray::Array< Pixel, 1, 1 > _variance
boost::shared_ptr< Model > getModel() const
Return an object that defines the model and its parameters.
Likelihood & operator=(const Likelihood &)=delete
int getAmplitudeDim() const
Return the number of linear parameters (columns of the model matrix)
int getFixedDim() const
Return the number of fixed nonlinear parameters.
Abstract base class and concrete factories that define multi-shapelet galaxy models.
ndarray::Array< Scalar const, 1, 1 > getFixed() const
Return the vector of fixed nonlinear parameters.
Base class for optimizer/sampler likelihood functions that compute likelihood at a point.
virtual void computeModelMatrix(ndarray::Array< Pixel, 2,-1 > const &modelMatrix, ndarray::Array< Scalar const, 1, 1 > const &nonlinear, bool doApplyWeights=true) const =0
Evaluate the model for the given vector of nonlinear parameters.
int getNonlinearDim() const
Return the number of nonlinear parameters (which parameterize the model matrix)
Likelihood(Likelihood &&)=delete
Reports attempts to exceed implementation-defined length limits for some classes.
ndarray::Array< Pixel const, 1, 1 > getData() const
Return the vector of weighted, scaled data points .
Likelihood(const Likelihood &)=delete
A base class for image defects.
ndarray::Array< Pixel const, 1, 1 > getVariance() const
Return the vector of per-data-point variances.
ndarray::Array< Pixel, 1, 1 > _unweightedData
ndarray::Array< Scalar const, 1, 1 > _fixed
ndarray::Array< Pixel const, 1, 1 > getUnweightedData() const
Return the vector of unweighted data points .
int getDataDim() const
Return the number of data points.
ndarray::Array< Pixel, 1, 1 > _weights
int getFixedDim() const
Return the number of fixed nonlinear parameters (set on Likelihood construction)
Likelihood(boost::shared_ptr< Model > model, ndarray::Array< Scalar const, 1, 1 > const &fixed)
ndarray::Array< Pixel, 1, 1 > _data
boost::shared_ptr< Model > _model
ndarray::Array< Pixel const, 1, 1 > getWeights() const
Return the vector of weights applied to data points and model matrix rows.