lsst.meas.modelfit  14.0-1-g2fa83af+4
UnitTransformedLikelihood.h
Go to the documentation of this file.
1 // -*- lsst-c++ -*-
2 /*
3  * LSST Data Management System
4  * Copyright 2008-2013 LSST Corporation.
5  *
6  * This product includes software developed by the
7  * LSST Project (http://www.lsst.org/).
8  *
9  * This program is free software: you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation, either version 3 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the LSST License Statement and
20  * the GNU General Public License along with this program. If not,
21  * see <http://www.lsstcorp.org/LegalNotices/>.
22  */
23 
24 #ifndef LSST_MEAS_MODELFIT_UnitTransformedLikelihood_h_INCLUDED
25 #define LSST_MEAS_MODELFIT_UnitTransformedLikelihood_h_INCLUDED
26 
27 #include <vector>
28 #include <memory>
29 
30 #include "ndarray.h"
31 
32 #include "lsst/pex/config.h"
36 
41 
42 namespace lsst { namespace meas { namespace modelfit {
43 
51 public:
52 
54  "whether to individually weigh pixels using the variance image.");
55 
57  "Scaling factor to apply to weights.");
58 
59  explicit UnitTransformedLikelihoodControl(bool usePixelWeights_=false, double weightsMultiplier_=1.0)
60  : usePixelWeights(usePixelWeights_), weightsMultiplier(weightsMultiplier_) {}
61 
62 };
63 
70 public:
78  explicit EpochFootprint(
79  afw::detection::Footprint const &footprint,
80  afw::image::Exposure<Pixel> const &exposure,
82  );
83 
87 };
88 
102 public:
103 
105  void computeModelMatrix(
106  ndarray::Array<Pixel,2,-1> const & modelMatrix,
107  ndarray::Array<Scalar const,1,1> const & nonlinear,
108  bool doApplyWeights=true
109  ) const override;
110 
121  explicit UnitTransformedLikelihood(
122  PTR(Model) model,
123  ndarray::Array<Scalar const,1,1> const & fixed,
124  UnitSystem const & fitSys,
125  afw::coord::Coord const & position,
126  std::vector<PTR(EpochFootprint)> const & epochFootprintList,
128  );
129 
142  explicit UnitTransformedLikelihood(
143  PTR(Model) model,
144  ndarray::Array<Scalar const,1,1> const & fixed,
145  UnitSystem const & fitSys,
146  afw::coord::Coord const & position,
147  afw::image::Exposure<Pixel> const & exposure,
148  afw::detection::Footprint const & footprint,
151  );
152 
153  virtual ~UnitTransformedLikelihood();
154 
155 private:
156  class Impl;
157  std::unique_ptr<Impl> _impl;
158 };
159 
160 }}} // namespace lsst::meas::modelfit
161 
162 #endif // !LSST_MEAS_MODELFIT_UnitTransformedLikelihood_h_INCLUDED
Control object used to initialize a UnitTransformedLikelihood.
#define PTR(...)
UnitTransformedLikelihoodControl(bool usePixelWeights_=false, double weightsMultiplier_=1.0)
afw::detection::Footprint const footprint
footprint of source (galaxy)
#define LSST_CONTROL_FIELD(NAME, TYPE, DOC)
Abstract base class and concrete factories that define multi-shapelet galaxy models.
Definition: Model.h:56
afw::image::Exposure< Pixel > const exposure
subregion of exposure that includes footprint
A simple struct that combines a Wcs and a Calib.
Definition: UnitSystem.h:40
double weightsMultiplier
"Scaling factor to apply to weights." ;
STL class.
Base class for optimizer/sampler likelihood functions that compute likelihood at a point...
Definition: Likelihood.h:69
An image at one epoch of a galaxy, plus associated info.
bool usePixelWeights
"whether to individually weigh pixels using the variance image." ;
A concrete Likelihood class that does not require its parameters and data to be in the same UnitSyste...
shapelet::MultiShapeletFunction const psf
multi-shapelet model of exposure PSF