LSST Applications g0b6bd0c080+a72a5dd7e6,g1182afd7b4+2a019aa3bb,g17e5ecfddb+2b8207f7de,g1d67935e3f+06cf436103,g38293774b4+ac198e9f13,g396055baef+6a2097e274,g3b44f30a73+6611e0205b,g480783c3b1+98f8679e14,g48ccf36440+89c08d0516,g4b93dc025c+98f8679e14,g5c4744a4d9+a302e8c7f0,g613e996a0d+e1c447f2e0,g6c8d09e9e7+25247a063c,g7271f0639c+98f8679e14,g7a9cd813b8+124095ede6,g9d27549199+a302e8c7f0,ga1cf026fa3+ac198e9f13,ga32aa97882+7403ac30ac,ga786bb30fb+7a139211af,gaa63f70f4e+9994eb9896,gabf319e997+ade567573c,gba47b54d5d+94dc90c3ea,gbec6a3398f+06cf436103,gc6308e37c7+07dd123edb,gc655b1545f+ade567573c,gcc9029db3c+ab229f5caf,gd01420fc67+06cf436103,gd877ba84e5+06cf436103,gdb4cecd868+6f279b5b48,ge2d134c3d5+cc4dbb2e3f,ge448b5faa6+86d1ceac1d,gecc7e12556+98f8679e14,gf3ee170dca+25247a063c,gf4ac96e456+ade567573c,gf9f5ea5b4d+ac198e9f13,gff490e6085+8c2580be5c,w.2022.27
LSST Data Management Base Package
|
A photometric transform, defined in terms of the input flux or magnitude. More...
#include <PhotometryTransform.h>
Public Member Functions | |
virtual double | transform (double x, double y, double value) const =0 |
Return the transform of value at (x,y). More... | |
double | transform (Point const &in, double value) const |
Return the transformed value at Point(x,y). More... | |
virtual double | transformError (double x, double y, double value, double valueErr) const =0 |
Return the transformed valueErr at Point(x,y). More... | |
double | transformError (Point const &in, double value, double valueErr) const |
Return the transformed valueErr at Point(x,y). More... | |
virtual void | print (std::ostream &out) const =0 |
Print the transform coefficients to stream. More... | |
virtual std::size_t | getNpar () const =0 |
Return the number of parameters (used to compute chisq) More... | |
virtual void | offsetParams (Eigen::VectorXd const &delta)=0 |
Offset the parameters by some (negative) amount during fitting. More... | |
virtual std::shared_ptr< PhotometryTransform > | clone () const =0 |
return a copy (allocated by new) of the transformation. More... | |
virtual void | computeParameterDerivatives (double x, double y, double value, Eigen::Ref< Eigen::VectorXd > derivatives) const =0 |
Compute the derivatives with respect to the parameters (i.e. More... | |
virtual Eigen::VectorXd | getParameters () const =0 |
Get a copy of the parameters of this model, in the same order as offsetParams . More... | |
virtual | ~PhotometryTransform ()=default |
Friends | |
std::ostream & | operator<< (std::ostream &s, PhotometryTransform const &transform) |
A photometric transform, defined in terms of the input flux or magnitude.
Unit agnostic: a higher level Model must keep track of the units going into and out of of its Transforms.
Definition at line 52 of file PhotometryTransform.h.
|
virtualdefault |
|
pure virtual |
return a copy (allocated by new) of the transformation.
Implemented in lsst::jointcal::FluxTransformSpatiallyInvariant, lsst::jointcal::MagnitudeTransformSpatiallyInvariant, lsst::jointcal::FluxTransformChebyshev, and lsst::jointcal::MagnitudeTransformChebyshev.
|
pure virtual |
Compute the derivatives with respect to the parameters (i.e.
the coefficients).
[in] | x | The x coordinate to compute at (in the appropriate units for this transform). |
[in] | y | The y coordinate to compute at (in the appropriate units for this transform). |
[in] | value | The instrument flux or magnitude to compute the derivative at. |
[out] | derivatives | The computed derivatives, in the same order as the deltas in offsetParams. |
Implemented in lsst::jointcal::FluxTransformSpatiallyInvariant, lsst::jointcal::MagnitudeTransformSpatiallyInvariant, lsst::jointcal::FluxTransformChebyshev, and lsst::jointcal::MagnitudeTransformChebyshev.
|
pure virtual |
Return the number of parameters (used to compute chisq)
Implemented in lsst::jointcal::PhotometryTransformSpatiallyInvariant, and lsst::jointcal::PhotometryTransformChebyshev.
|
pure virtual |
Get a copy of the parameters of this model, in the same order as offsetParams
.
Implemented in lsst::jointcal::PhotometryTransformSpatiallyInvariant, and lsst::jointcal::PhotometryTransformChebyshev.
|
pure virtual |
Offset the parameters by some (negative) amount during fitting.
Equivalent to flatten(parameters) -= delta
Ordering of delta is the same as the ordering of the derivatives returned from computeParameterDerivatives
.
Implemented in lsst::jointcal::PhotometryTransformSpatiallyInvariant, and lsst::jointcal::PhotometryTransformChebyshev.
|
pure virtual |
Print the transform coefficients to stream.
Implemented in lsst::jointcal::PhotometryTransformSpatiallyInvariant, and lsst::jointcal::PhotometryTransformChebyshev.
|
pure virtual |
Return the transform of value at (x,y).
Implemented in lsst::jointcal::MagnitudeTransformSpatiallyInvariant, lsst::jointcal::FluxTransformSpatiallyInvariant, lsst::jointcal::FluxTransformChebyshev, and lsst::jointcal::MagnitudeTransformChebyshev.
|
inline |
Return the transformed value at Point(x,y).
Definition at line 58 of file PhotometryTransform.h.
|
pure virtual |
Return the transformed valueErr at Point(x,y).
Implemented in lsst::jointcal::FluxTransformSpatiallyInvariant, lsst::jointcal::MagnitudeTransformSpatiallyInvariant, and lsst::jointcal::PhotometryTransformChebyshev.
|
inline |
Return the transformed valueErr at Point(x,y).
Definition at line 64 of file PhotometryTransform.h.
|
friend |
Definition at line 71 of file PhotometryTransform.h.