lsst.jointcal
14.0-12-gc7bdbdc
|
Interface class for PhotometryFit. More...
#include <PhotometryModel.h>
Public Member Functions | |
virtual unsigned | assignIndices (std::string const &whatToFit, unsigned firstIndex)=0 |
Assign indices to parameters involved in mappings, starting at firstIndex. More... | |
virtual void | offsetParams (Eigen::VectorXd const &delta)=0 |
Offset the parameters by the provided amounts. More... | |
virtual double | transform (CcdImage const &ccdImage, MeasuredStar const &measuredStar, double instFlux) const =0 |
Return the on-sky transformed flux for measuredStar on ccdImage. More... | |
virtual void | getMappingIndices (CcdImage const &ccdImage, std::vector< unsigned > &indices) const =0 |
Get how this set of parameters (of length Npar()) map into the "grand" fit. More... | |
virtual void | computeParameterDerivatives (MeasuredStar const &measuredStar, CcdImage const &ccdImage, Eigen::VectorXd &derivatives) const =0 |
Compute the parametric derivatives of this model. More... | |
virtual std::shared_ptr< afw::image::PhotoCalib > | toPhotoCalib (CcdImage const &ccdImage) const =0 |
Return the mapping of ccdImage represented as a PhotoCalib. More... | |
unsigned | getNpar (CcdImage const &ccdImage) const |
Return the number of parameters in the mapping of CcdImage. More... | |
PhotometryMappingBase const & | getMapping (CcdImage const &ccdImage) const |
Get the mapping associated with ccdImage. More... | |
virtual void | dump (std::ostream &stream=std::cout) const =0 |
Dump the contents of the transfos, for debugging. More... | |
Protected Member Functions | |
virtual PhotometryMappingBase * | findMapping (CcdImage const &ccdImage) const =0 |
Return a pointer to the mapping associated with this ccdImage. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &s, PhotometryModel const &model) |
Interface class for PhotometryFit.
Definition at line 21 of file PhotometryModel.h.
|
pure virtual |
Assign indices to parameters involved in mappings, starting at firstIndex.
[in] | whatToFit | String containing parameters to fit. |
[in] | firstIndex | Index to start assigning at. |
Implemented in lsst::jointcal::ConstrainedPhotometryModel, and lsst::jointcal::SimplePhotometryModel.
|
pure virtual |
Compute the parametric derivatives of this model.
[in] | measuredStar | The measured star with the position and flux to compute at. |
[in] | ccdImage | The ccdImage containing the measured star, to find the correct mapping. |
[out] | derivatives | The computed derivatives. Must be pre-allocated to the correct size. |
Implemented in lsst::jointcal::ConstrainedPhotometryModel, and lsst::jointcal::SimplePhotometryModel.
|
pure virtual |
Dump the contents of the transfos, for debugging.
Implemented in lsst::jointcal::ConstrainedPhotometryModel, and lsst::jointcal::SimplePhotometryModel.
|
protectedpure virtual |
Return a pointer to the mapping associated with this ccdImage.
|
inline |
Get the mapping associated with ccdImage.
Definition at line 80 of file PhotometryModel.h.
|
pure virtual |
Get how this set of parameters (of length Npar()) map into the "grand" fit.
[out] | indices | The indices of the mapping associated with ccdImage. |
Implemented in lsst::jointcal::ConstrainedPhotometryModel, and lsst::jointcal::SimplePhotometryModel.
|
inline |
Return the number of parameters in the mapping of CcdImage.
Definition at line 77 of file PhotometryModel.h.
|
pure virtual |
Offset the parameters by the provided amounts.
The shifts are applied according to the indices given in assignIndices.
[in] | delta | vector of offsets to apply |
Implemented in lsst::jointcal::ConstrainedPhotometryModel, and lsst::jointcal::SimplePhotometryModel.
|
pure virtual |
Return the mapping of ccdImage represented as a PhotoCalib.
Implemented in lsst::jointcal::ConstrainedPhotometryModel, and lsst::jointcal::SimplePhotometryModel.
|
pure virtual |
Return the on-sky transformed flux for measuredStar on ccdImage.
[in] | ccdImage | The ccdImage where measuredStar resides. |
measuredStar | The measured star position to compute the transform at. | |
[in] | instFlux | The instrument flux to transform. |
Implemented in lsst::jointcal::ConstrainedPhotometryModel, and lsst::jointcal::SimplePhotometryModel.
|
friend |
Definition at line 87 of file PhotometryModel.h.