LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
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... | |
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.
|
pure virtual |
return a copy (allocated by new) of the transformation.
Implemented in lsst::jointcal::MagnitudeTransformChebyshev, lsst::jointcal::FluxTransformChebyshev, lsst::jointcal::MagnitudeTransformSpatiallyInvariant, and lsst::jointcal::FluxTransformSpatiallyInvariant.
|
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::MagnitudeTransformChebyshev, lsst::jointcal::FluxTransformChebyshev, lsst::jointcal::MagnitudeTransformSpatiallyInvariant, and lsst::jointcal::FluxTransformSpatiallyInvariant.
|
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::MagnitudeTransformChebyshev, lsst::jointcal::FluxTransformChebyshev, lsst::jointcal::FluxTransformSpatiallyInvariant, and lsst::jointcal::MagnitudeTransformSpatiallyInvariant.
|
inline |
|
pure virtual |
Return the transformed valueErr at Point(x,y).
Implemented in lsst::jointcal::PhotometryTransformChebyshev, lsst::jointcal::MagnitudeTransformSpatiallyInvariant, and lsst::jointcal::FluxTransformSpatiallyInvariant.
|
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.