lsst.jointcal
14.0-19-g0e46020+13
|
#include <PhotometryTransfo.h>
Public Member Functions | |
virtual double | transform (double x, double y, double instFlux) const =0 |
Apply the transform to instFlux at (x,y), put result in flux. More... | |
double | transform (Point const &in, double instFlux) const |
Return the transformed instFlux at (x,y). More... | |
virtual void | dump (std::ostream &stream=std::cout) const =0 |
dumps the transfo coefficients to stream. More... | |
virtual int | getNpar () const |
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< PhotometryTransfo > | clone () const =0 |
return a copy (allocated by new) of the transformation. More... | |
virtual void | computeParameterDerivatives (double x, double y, double instFlux, 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, PhotometryTransfo const &transfo) |
Definition at line 33 of file PhotometryTransfo.h.
|
pure virtual |
return a copy (allocated by new) of the transformation.
Implemented in lsst::jointcal::PhotometryTransfoChebyshev, and lsst::jointcal::PhotometryTransfoSpatiallyInvariant.
|
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 transfo). |
[in] | y | The y coordinate to compute at (in the appropriate units for this transfo). |
[in] | instFlux | The instrument flux to compute the derivative at. |
[out] | derivatives | The computed derivatives, in the same order as the deltas in offsetParams. |
Implemented in lsst::jointcal::PhotometryTransfoChebyshev, and lsst::jointcal::PhotometryTransfoSpatiallyInvariant.
|
pure virtual |
dumps the transfo coefficients to stream.
Implemented in lsst::jointcal::PhotometryTransfoChebyshev, and lsst::jointcal::PhotometryTransfoSpatiallyInvariant.
|
inlinevirtual |
Return the number of parameters (used to compute chisq)
Reimplemented in lsst::jointcal::PhotometryTransfoChebyshev, and lsst::jointcal::PhotometryTransfoSpatiallyInvariant.
Definition at line 50 of file PhotometryTransfo.h.
|
pure virtual |
Get a copy of the parameters of this model, in the same order as offsetParams
.
Implemented in lsst::jointcal::PhotometryTransfoChebyshev, and lsst::jointcal::PhotometryTransfoSpatiallyInvariant.
|
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::PhotometryTransfoChebyshev, and lsst::jointcal::PhotometryTransfoSpatiallyInvariant.
|
pure virtual |
Apply the transform to instFlux at (x,y), put result in flux.
Implemented in lsst::jointcal::PhotometryTransfoChebyshev, and lsst::jointcal::PhotometryTransfoSpatiallyInvariant.
|
inline |
Return the transformed instFlux at (x,y).
Definition at line 39 of file PhotometryTransfo.h.
|
friend |
Definition at line 44 of file PhotometryTransfo.h.