LSST Applications g0fba68d861+aa97b6e50c,g1ec0fe41b4+f536777771,g1fd858c14a+a9301854fb,g35bb328faa+fcb1d3bbc8,g4af146b050+a5c07d5b1d,g4d2262a081+78f4f01b60,g53246c7159+fcb1d3bbc8,g56a49b3a55+9c12191793,g5a012ec0e7+3632fc3ff3,g60b5630c4e+ded28b650d,g67b6fd64d1+ed4b5058f4,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g8352419a5c+fcb1d3bbc8,g87b7deb4dc+7b42cf88bf,g8852436030+e5453db6e6,g89139ef638+ed4b5058f4,g8e3bb8577d+d38d73bdbd,g9125e01d80+fcb1d3bbc8,g94187f82dc+ded28b650d,g989de1cb63+ed4b5058f4,g9d31334357+ded28b650d,g9f33ca652e+50a8019d8c,gabe3b4be73+1e0a283bba,gabf8522325+fa80ff7197,gb1101e3267+d9fb1f8026,gb58c049af0+f03b321e39,gb89ab40317+ed4b5058f4,gcf25f946ba+e5453db6e6,gcf6002c91b+2a0c9e9e84,gd6cbbdb0b4+bb83cc51f8,gdd1046aedd+ded28b650d,gde0f65d7ad+66b3a48cb7,ge278dab8ac+d65b3c2b70,ge410e46f29+ed4b5058f4,gf23fb2af72+b7cae620c0,gf5e32f922b+fcb1d3bbc8,gf67bdafdda+ed4b5058f4,w.2025.16
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). | |
double | transform (Point const &in, double value) const |
Return the transformed value at Point(x,y). | |
virtual double | transformError (double x, double y, double value, double valueErr) const =0 |
Return the transformed valueErr at Point(x,y). | |
double | transformError (Point const &in, double value, double valueErr) const |
Return the transformed valueErr at Point(x,y). | |
virtual void | print (std::ostream &out) const =0 |
Print the transform coefficients to stream. | |
virtual std::size_t | getNpar () const =0 |
Return the number of parameters (used to compute chisq) | |
virtual void | offsetParams (Eigen::VectorXd const &delta)=0 |
Offset the parameters by some (negative) amount during fitting. | |
virtual std::shared_ptr< PhotometryTransform > | clone () const =0 |
return a copy (allocated by new) of the transformation. | |
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. | |
virtual Eigen::VectorXd | getParameters () const =0 |
Get a copy of the parameters of this model, in the same order as offsetParams . | |
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::FluxTransformChebyshev, lsst::jointcal::FluxTransformSpatiallyInvariant, lsst::jointcal::MagnitudeTransformChebyshev, and lsst::jointcal::MagnitudeTransformSpatiallyInvariant.
|
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::FluxTransformChebyshev, lsst::jointcal::FluxTransformSpatiallyInvariant, lsst::jointcal::MagnitudeTransformChebyshev, and lsst::jointcal::MagnitudeTransformSpatiallyInvariant.
|
pure virtual |
Return the number of parameters (used to compute chisq)
Implemented in lsst::jointcal::PhotometryTransformChebyshev, and lsst::jointcal::PhotometryTransformSpatiallyInvariant.
|
pure virtual |
Get a copy of the parameters of this model, in the same order as offsetParams
.
Implemented in lsst::jointcal::PhotometryTransformChebyshev, and lsst::jointcal::PhotometryTransformSpatiallyInvariant.
|
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::PhotometryTransformChebyshev, and lsst::jointcal::PhotometryTransformSpatiallyInvariant.
|
pure virtual |
Print the transform coefficients to stream.
Implemented in lsst::jointcal::PhotometryTransformChebyshev, and lsst::jointcal::PhotometryTransformSpatiallyInvariant.
|
pure virtual |
Return the transform of value at (x,y).
Implemented in lsst::jointcal::FluxTransformChebyshev, lsst::jointcal::FluxTransformSpatiallyInvariant, lsst::jointcal::MagnitudeTransformChebyshev, and lsst::jointcal::MagnitudeTransformSpatiallyInvariant.
|
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.